summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/misc.c4
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);
}