summaryrefslogtreecommitdiff
path: root/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch')
-rw-r--r--net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch b/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
new file mode 100644
index 000000000000..5b397c01b05b
--- /dev/null
+++ b/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
@@ -0,0 +1,15 @@
+From: Ludovic Rousseau <rousseau at debian dot org>
+Subject: A patch for fixing wrong memory intialization
+
+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 */