summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/rpc.yppasswdd/yppasswdd_mkpw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
index a3b6c60b543..8f3f62ffab4 100644
--- a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
+++ b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
@@ -30,7 +30,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: yppasswdd_mkpw.c,v 1.6 1996/08/30 13:09:14 deraadt Exp $";
+static char rcsid[] = "$Id: yppasswdd_mkpw.c,v 1.7 1996/08/30 15:10:02 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -53,10 +53,10 @@ int
badchars(base)
char *base;
{
- char *s = match;
int ampr = 0;
+ char *s;
- for (s = match; *s; s++) {
+ for (s = base; *s; s++) {
if (*s == '&')
ampr++;
if (!isprint(*s))