version 2.23, 1994/03/14 20:07:03
|
version 2.24, 1994/03/21 15:39:49
|
Line 132 PRIVATE char *HTFWriter_filename ARGS4(c
|
Line 132 PRIVATE char *HTFWriter_filename ARGS4(c
|
hash = *ptr + *primes * hash; |
hash = *ptr + *primes * hash; |
hash %= limit; |
hash %= limit; |
{ /* Convert hash to string */ |
{ /* Convert hash to string */ |
char hashstr[digits+1]; |
char hashstr[20+1]; /* @@@ fixme */ |
sprintf(format, "%%0%du", digits); |
sprintf(format, "%%0%du", digits); |
sprintf(hashstr, format, hash); |
sprintf(hashstr, format, hash); |
*(hashstr+digits) = '\0'; |
*(hashstr+digits) = '\0'; |
Line 177 PRIVATE char *HTFWriter_filename ARGS4(c
|
Line 177 PRIVATE char *HTFWriter_filename ARGS4(c
|
hash = *ptr + *(primes+cnt) * hash; |
hash = *ptr + *(primes+cnt) * hash; |
hash %= limit; |
hash %= limit; |
{ |
{ |
char hashstr[digits+1]; |
char hashstr[20+1]; /* @@@ fixme */ |
sprintf(hashstr, format, hash); |
sprintf(hashstr, format, hash); |
*(hashstr+digits) = '\0'; |
*(hashstr+digits) = '\0'; |
memcpy(replace, hashstr, digits); |
memcpy(replace, hashstr, digits); |