marc 98/03/13 13:52:31
Modified: src/support htpasswd.c Log: Properly terminate the salt. PR: 1946 Submitted by: Matthew Reimer <[EMAIL PROTECTED]> Revision Changes Path 1.12 +1 -0 apache-1.3/src/support/htpasswd.c Index: htpasswd.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/support/htpasswd.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- htpasswd.c 1998/02/22 21:39:34 1.11 +++ htpasswd.c 1998/03/13 21:52:30 1.12 @@ -133,6 +133,7 @@ } (void) srand((int) time((time_t *) NULL)); to64(&salt[0], rand(), 2); + salt[2] = '\0'; cpw = crypt(pw, salt); free(pw); fprintf(f, "%s:%s\n", user, cpw);