From: Amos Jeffries Date: Fri, 15 May 2009 06:53:12 +0000 (+1200) Subject: Author: Alin Nastac X-Git-Tag: SQUID_3_1_0_8~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=448db12f58d0b2d4cba4874f9d3269abddbec0d5;p=thirdparty%2Fsquid.git Author: Alin Nastac Compile error in xstrdup --- diff --git a/lib/util.c b/lib/util.c index 199d74db29..316e737439 100644 --- a/lib/util.c +++ b/lib/util.c @@ -751,7 +751,8 @@ xstrdup(const char *s) /* copy string, including terminating character */ sz = strlen(s) + 1; - p = memcpy((char *)xmalloc(sz), s, sz); + p = (char *)xmalloc(sz); + memcpy(p, s, sz); PROF_stop(xstrdup);