X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvlimit.c;h=5402bee649145697a7929522b7997a2447614233;hb=0eb34ea41e1fba993eb58d5b28c275e311db0527;hp=71b3aa71d754d11354415f65586e6a3587be5d80;hpb=db88feae30e27b1f5062ca842cfe09db749a734e;p=util-vserver.git diff --git a/src/vlimit.c b/src/vlimit.c index 71b3aa7..5402bee 100644 --- 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 { @@ -406,7 +406,7 @@ int main (int argc, char *argv[]) default : WRITE_MSG(2, "Try '"); WRITE_STR(2, argv[0]); - WRITE_MSG(2, " --help\" for more information.\n"); + WRITE_MSG(2, " --help' for more information.\n"); exit(wrapper_exit_code) ; break; }