Return to encrypt.c CVS log | Up to [local] / src / usr.bin / encrypt |
version 1.38, 2015/01/15 17:34:15 | version 1.39, 2015/02/24 18:45:51 | ||
---|---|---|---|
|
|
||
{ | { | ||
char buffer[_PASSWORD_LEN]; | char buffer[_PASSWORD_LEN]; | ||
const char *pref; | const char *pref; | ||
char prefbuf[16]; | char prefbuf[64]; | ||
if (operation == DO_BLF) { | if (operation == DO_BLF) { | ||
snprintf(prefbuf, sizeof(prefbuf), "blowfish,%s", extra); | if (snprintf(prefbuf, sizeof(prefbuf), "blowfish,%s", extra) >= | ||
sizeof(prefbuf)) | |||
errx(1, "pref too long"); | |||
pref = prefbuf; | pref = prefbuf; | ||
} else { | } else { | ||
login_cap_t *lc; | login_cap_t *lc; |