summaryrefslogtreecommitdiff
path: root/package/squid/patches/patch-lib_util_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
commite874f84fdb6eb83d905a72b35d87398374594b97 (patch)
tree38ecc86989a194756836fa411c4bfb7c4b68913f /package/squid/patches/patch-lib_util_c
parent68e89ea1a3ec3690ddefbd97c45174f799847a16 (diff)
more regressions found at runtime on alic1c
Diffstat (limited to 'package/squid/patches/patch-lib_util_c')
-rw-r--r--package/squid/patches/patch-lib_util_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/squid/patches/patch-lib_util_c b/package/squid/patches/patch-lib_util_c
new file mode 100644
index 000000000..562be88fc
--- /dev/null
+++ b/package/squid/patches/patch-lib_util_c
@@ -0,0 +1,12 @@
+--- squid-3.0.STABLE15.orig/lib/util.c 2009-05-06 13:11:38.000000000 +0200
++++ squid-3.0.STABLE15/lib/util.c 2009-06-04 21:05:19.000000000 +0200
+@@ -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);
+