artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07783de
)
Fix a strlcpy() bound.
author
miod
<miod@openbsd.org>
Sat, 12 Jul 2008 12:33:42 +0000
(12:33 +0000)
committer
miod
<miod@openbsd.org>
Sat, 12 Jul 2008 12:33:42 +0000
(12:33 +0000)
bin/ksh/misc.c
patch
|
blob
|
history
diff --git
a/bin/ksh/misc.c
b/bin/ksh/misc.c
index
3418242
..
48f45fe
100644
(file)
--- a/
bin/ksh/misc.c
+++ b/
bin/ksh/misc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: misc.c,v 1.3
3 2008/03/21 12:51:19 millert Exp $
*/
+/* $OpenBSD: misc.c,v 1.3
4 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);
}