| 1 | Description: fix salt buffer length |
| 2 | Forwarded: [email protected] on 2005-11-02 |
| 3 | Author: Paul Martin <[email protected]> |
| 4 | Last-Update: 2006-05-08 |
| 5 | Bug-Debian: http://bugs.debian.org/337116 |
| 6 | --- a/apg.c |
| 7 | +++ b/apg.c |
| 8 | @@ -662,7 +662,7 @@ print_help (void) |
| 9 | */ |
| 10 | char * crypt_passstring (const char *p) |
| 11 | { |
| 12 | - char salt[10]; |
| 13 | + char salt[11]; |
| 14 | gen_rand_pass (salt, 10, 10, S_SL|S_CL|S_NB); |
| 15 | return (crypt(p, salt)); |
| 16 | } |