mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
-Clarification of last commit-
The char that the random letters and numbers are being pulled from is ended with a '\0'. Using sizeof() includes this '\0' in the 'pool' of possible characters. This patch decrements by one the size so we don't accidently end the new password prematurly.
This commit is contained in:
parent
19d108e89e
commit
9fb99cddfc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42287
@ -26,7 +26,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id: pw_user.c,v 1.23 1997/10/10 06:23:39 charnier Exp $";
|
||||
"$Id: pw_user.c,v 1.24 1999/01/02 04:37:46 billf Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <ctype.h>
|
||||
|
Loading…
Reference in New Issue
Block a user