projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
strcpy copies \0, use memcpy instead.
[util-vserver.git]
/
src
/
vlimit.c
diff --git
a/src/vlimit.c
b/src/vlimit.c
index
71b3aa7
..
4babd55
100644
(file)
--- a/
src/vlimit.c
+++ b/
src/vlimit.c
@@
-181,7
+181,7
@@
appendLimit(char *ptr, bool do_it, vc_limit_t lim)
ptr += 2;
if (do_it) {
if (lim==VC_LIM_INFINITY) {
- strcpy(ptr, "inf");
+ memcpy(ptr, "inf", 3);
ptr += 3;
}
else {