Vodz, last_patch_86

This commit is contained in:
Glenn L McGrath
2003-05-26 14:07:50 +00:00
parent ddfe18df75
commit 393183dccc
17 changed files with 121 additions and 115 deletions

View File

@ -39,10 +39,7 @@ extern char *pw_encrypt(const char *clear, const char *salt)
/* if crypt (a nonstandard crypt) returns a string too large,
truncate it so we don't overrun buffers and hope there is
enough security in what's left */
if (strlen(cp) > sizeof(cipher)-1) {
cp[sizeof(cipher)-1] = 0;
}
strcpy(cipher, cp);
safe_strncpy(cipher, cp, sizeof(cipher));
return cipher;
}