From 41e7c42502d8b87a5bfabd86885fdffcd4cd25e0 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 4 Dec 1999 21:27:18 +0000 Subject: [PATCH] oops --- usr.bin/skey/skey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/skey/skey.c b/usr.bin/skey/skey.c index 64643b7f17c..986dc9fbf8a 100644 --- a/usr.bin/skey/skey.c +++ b/usr.bin/skey/skey.c @@ -1,4 +1,4 @@ -/* * $OpenBSD: skey.c,v 1.13 1999/12/04 21:20:20 deraadt Exp $*/ +/* * $OpenBSD: skey.c,v 1.14 1999/12/04 21:27:18 deraadt Exp $*/ /* * S/KEY v1.1b (skey.c) * @@ -62,7 +62,7 @@ main(argc, argv) case 'p': if (i + 1 == argc) usage(argv[0]); - if (strlcpy(passwd, argv[++i], sizeof(passwd)) > + if (strlcpy(passwd, argv[++i], sizeof(passwd)) >= sizeof(passwd)) errx(1, "Password too long"); pass = 1;