diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-12 12:33:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-12 12:33:43 +0000 |
commit | 8bd330d847277812118fc4fcb09902d0bdc7505f (patch) | |
tree | ab03b5460877086b9b03828c495aa5add3aabf4b /bin/ksh | |
parent | ac1bdba169fd42a2a5a79ada6f9f2c6fe4decd94 (diff) |
Fix a strlcpy() bound.
Diffstat (limited to 'bin/ksh')
-rw-r--r-- | bin/ksh/misc.c | 4 |
1 files 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); } |