=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/edit.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/chpass/edit.c 1996/08/31 13:35:23 1.9 --- src/usr.bin/chpass/edit.c 1996/09/01 13:06:51 1.10 *************** *** 1,4 **** ! /* $OpenBSD: edit.c,v 1.9 1996/08/31 13:35:23 deraadt Exp $ */ /* $NetBSD: edit.c,v 1.6 1996/05/15 21:50:45 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: edit.c,v 1.10 1996/09/01 13:06:51 deraadt Exp $ */ /* $NetBSD: edit.c,v 1.6 1996/05/15 21:50:45 jtc Exp $ */ /*- *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: edit.c,v 1.9 1996/08/31 13:35:23 deraadt Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: edit.c,v 1.10 1996/09/01 13:06:51 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 215,222 **** "%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s", pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class, pw->pw_change, pw->pw_expire, pw->pw_gecos, pw->pw_dir, ! pw->pw_shell) >= sizeof(buf) || ! strlen(buf) + alen >= sizeof(buf) -1) { warnx("entries too long"); free(p); return (0); --- 215,222 ---- "%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s", pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class, pw->pw_change, pw->pw_expire, pw->pw_gecos, pw->pw_dir, ! pw->pw_shell) >= 1023 || ! strlen(buf) + alen >= 1023) { warnx("entries too long"); free(p); return (0);