artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a117f33
)
test before commiting, theo
author
deraadt
<deraadt@openbsd.org>
Fri, 30 Aug 1996 15:10:02 +0000
(15:10 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 30 Aug 1996 15:10:02 +0000
(15:10 +0000)
libexec/rpc.yppasswdd/yppasswdd_mkpw.c
patch
|
blob
|
history
diff --git
a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
index
a3b6c60
..
8f3f62f
100644
(file)
--- 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))