From 9fb99cddfc9e6476c28cc4ac4de289b79c1b474e Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Mon, 4 Jan 1999 14:07:53 +0000 Subject: [PATCH] -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. --- usr.sbin/pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index fd5f4f090686..87ec76c7716c 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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