increase max. buffer size to pass checks for crypt output > 10 chars.
authorprovos <provos@openbsd.org>
Tue, 18 Feb 1997 14:05:40 +0000 (14:05 +0000)
committerprovos <provos@openbsd.org>
Tue, 18 Feb 1997 14:05:40 +0000 (14:05 +0000)
libexec/rpc.yppasswdd/yppasswdd_mkpw.c

index 62345eb..8156602 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #ifndef LINT
-static char rcsid[] = "$Id: yppasswdd_mkpw.c,v 1.9 1996/12/06 01:54:58 deraadt Exp $";
+static char rcsid[] = "$Id: yppasswdd_mkpw.c,v 1.10 1997/02/18 14:05:40 provos Exp $";
 #endif
 
 #include <sys/types.h>
@@ -64,7 +64,7 @@ badchars(base)
                if (strchr(":\n\t\r", *s))
                        return 1;
        }
-       if (ampr > 10)
+       if (ampr > _PASSWORD_LEN)
                return 1;
        return 0;
 }
@@ -75,7 +75,7 @@ make_passwd(argp)
 {
        struct passwd *pw;
        int     pfd, tfd;
-       char    buf[10], *p;
+       char    buf[_PASSWORD_LEN], *p;
        int     alen;
 
        pw = getpwnam(argp->newpw.pw_name);