summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/sitecopy/files/03_wrong_memory_397155.dpatch')
-rw-r--r--net-misc/sitecopy/files/03_wrong_memory_397155.dpatch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-misc/sitecopy/files/03_wrong_memory_397155.dpatch b/net-misc/sitecopy/files/03_wrong_memory_397155.dpatch
new file mode 100644
index 000000000000..ede24cb640fb
--- /dev/null
+++ b/net-misc/sitecopy/files/03_wrong_memory_397155.dpatch
@@ -0,0 +1,19 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## 03_wrong_memory_init.dpatch by Ludovic Rousseau <rousseau at debian dot org>
+## Dpatch format by Kartik <kartik.mistry@gmail.com>
+## DP: A patch for fixing wrong memory intialization
+
+@DPATCH@
+
+diff -u sitecopy-0.16.3-orig/src/rcfile.c sitecopy-0.16.3/src/rcfile.c
+--- sitecopy-0.16.3-orig/src/rcfile.c 2006-02-04 17:46:36.000000000 +0530
++++ sitecopy-0.16.3/src/rcfile.c 2006-11-08 22:24:51.000000000 +0530
+@@ -260,7 +260,7 @@
+ if (this_site != &default_site)
+ last_site = this_site;
+ /* Allocate new item */
+- this_site = ne_malloc(sizeof(struct site));
++ this_site = ne_calloc(sizeof(struct site));
+ /* Copy over the defaults */
+ memcpy(this_site, &default_site, sizeof(struct site));
+ /* Deep-copy the string lists */