strcpy copies \0, use memcpy instead.
[util-vserver.git] / src / vlimit.c
index 71b3aa7..4babd55 100644 (file)
@@ -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 {