From fe5b2122a9861757932827129c5fb4d37e5d8473 Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 12 Jul 2008 12:33:42 +0000 Subject: [PATCH] Fix a strlcpy() bound. --- bin/ksh/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1