diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-01-26 16:47:20 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-01-26 16:47:20 +0000 |
commit | e17345b10fe02c6585a8e1a1e78c633a96f72c11 (patch) | |
tree | 30f9993b04546587d672b34008cc83f60d698992 /net-misc/sitecopy/files/03_wrong_memory_397155.dpatch | |
parent | Dropped ppc-macos keyword, see you in prefix (diff) | |
download | gentoo-2-e17345b10fe02c6585a8e1a1e78c633a96f72c11.tar.gz gentoo-2-e17345b10fe02c6585a8e1a1e78c633a96f72c11.tar.bz2 gentoo-2-e17345b10fe02c6585a8e1a1e78c633a96f72c11.zip |
Revision bump to add patches from Debian, and fix bug #197804
(Portage version: 2.1.4)
Diffstat (limited to 'net-misc/sitecopy/files/03_wrong_memory_397155.dpatch')
-rw-r--r-- | net-misc/sitecopy/files/03_wrong_memory_397155.dpatch | 19 |
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 */ |