aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
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
commit9fb99cddfc9e6476c28cc4ac4de289b79c1b474e (patch)
treede294e8a4e69043a0de1d2024dcdb784f4fe16cd /usr.sbin
parent19d108e89e7d19760d2e223476b87c05b53872ef (diff)
downloadsrc-9fb99cddfc9e6476c28cc4ac4de289b79c1b474e.tar.gz
src-9fb99cddfc9e6476c28cc4ac4de289b79c1b474e.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.
Notes
Notes: svn path=/head/; revision=42287
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
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 <ctype.h>