From: miod Date: Sat, 12 Jul 2008 12:33:42 +0000 (+0000) Subject: Fix a strlcpy() bound. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fe5b2122a9861757932827129c5fb4d37e5d8473;p=openbsd Fix a strlcpy() bound. --- diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c index 3418242da7b..48f45fedc27 100644 --- a/bin/ksh/misc.c +++ b/bin/ksh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.33 2008/03/21 12:51:19 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.34 2008/07/12 12:33:42 miod Exp $ */ /* * Miscellaneous functions @@ -77,7 +77,7 @@ str_save(const char *s, Area *ap) return NULL; len = strlen(s)+1; p = alloc(len, ap); - strlcpy(p, s, len+1); + strlcpy(p, s, len); return (p); }