From: Amos Jeffries Date: Sun, 10 May 2009 08:00:24 +0000 (+1200) Subject: Author: Alin Nastac X-Git-Tag: SQUID_3_2_0_1~1014 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7ec2879f1d1820ace0c27e477bbe77ecb8ee842;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);