summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-01-04 14:07:53 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-01-04 14:07:53 +0000
commit17dadd6970011b8ffe2c5b946857a587cd72a6d0 (patch)
treed565b7e256274b4486d2ead77fa95b3545146781
parentf9a75fe50e33dd59bc91eac72bc5530cb7e434fb (diff)
downloadpw-darwin-17dadd6970011b8ffe2c5b946857a587cd72a6d0.tar.gz
pw-darwin-17dadd6970011b8ffe2c5b946857a587cd72a6d0.tar.zst
pw-darwin-17dadd6970011b8ffe2c5b946857a587cd72a6d0.zip
-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.
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index fd5f4f0..87ec76c 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -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>