summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-01-04 14:07:53 +0000
committerbillf <billf@FreeBSD.org>1999-01-04 14:07:53 +0000
commitb9b93bcb855b2aae132f761e63d19346ce1379d2 (patch)
treecc81911b89422490a4e2a758d700f261521b199b /usr.sbin/pw/pw_user.c
parent6aac368054bf175444936698c72674821f637e13 (diff)
downloadFreeBSD-src-b9b93bcb855b2aae132f761e63d19346ce1379d2.zip
FreeBSD-src-b9b93bcb855b2aae132f761e63d19346ce1379d2.tar.gz
-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.
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-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 fd5f4f0..87ec76c 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>
OpenPOWER on IntegriCloud