summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:50:40 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:50:40 +0000
commit9811dd20491d71b86c6029003d05fb8022093320 (patch)
treeb18ba95828e2e0cefe707d3ec9905bd2c4a5ca9c /usr.bin/chpass
parent3062cd8b277b2f91c96ada9b87815608c0fa2853 (diff)
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/chpass/edit.c b/usr.bin/chpass/edit.c
index 1c453e25e34..a013cd79f83 100644
--- a/usr.bin/chpass/edit.c
+++ b/usr.bin/chpass/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.29 2006/03/30 21:08:21 robert Exp $ */
+/* $OpenBSD: edit.c,v 1.30 2007/03/20 03:50:38 tedu Exp $ */
/* $NetBSD: edit.c,v 1.6 1996/05/15 21:50:45 jtc Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: edit.c,v 1.29 2006/03/30 21:08:21 robert Exp $";
+static char rcsid[] = "$OpenBSD: edit.c,v 1.30 2007/03/20 03:50:38 tedu Exp $";
#endif
#endif /* not lint */
@@ -182,7 +182,7 @@ verify(char *tempname, struct passwd *pw)
goto bad;
}
while (isspace(*++p));
- for (q = p; *q && isprint(*q); q++) {
+ for (q = p; isprint(*q); q++) {
if (ep->except && strchr(ep->except,*q))
break;
}