From: Amos Jeffries Date: Sat, 23 May 2009 04:51:23 +0000 (+1200) Subject: Author: Alin Nastac X-Git-Tag: SQUID_3_0_STABLE16~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c6834f4c099677f0737a2aded1afa682288deab;p=thirdparty%2Fsquid.git Author: Alin Nastac Compile error in xstrdup --- diff --git a/lib/util.c b/lib/util.c index a48a6f0637..993648b055 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);