/[gentoo-x86]/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
Gentoo

Contents of /net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Jan 31 00:21:27 2015 UTC (5 years ago) by idella4
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
bump subsequent to bug #500070, new patches to match, bump EAPI, removed -0.16.6_p3, all wrt bug #500070

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 From: Ludovic Rousseau <rousseau at debian dot org>
2 Subject: A patch for fixing wrong memory intialization
3
4 diff -u sitecopy-0.16.3-orig/src/rcfile.c sitecopy-0.16.3/src/rcfile.c
5 --- sitecopy-0.16.3-orig/src/rcfile.c 2006-02-04 17:46:36.000000000 +0530
6 +++ sitecopy-0.16.3/src/rcfile.c 2006-11-08 22:24:51.000000000 +0530
7 @@ -260,7 +260,7 @@
8 if (this_site != &default_site)
9 last_site = this_site;
10 /* Allocate new item */
11 - this_site = ne_malloc(sizeof(struct site));
12 + this_site = ne_calloc(sizeof(struct site));
13 /* Copy over the defaults */
14 memcpy(this_site, &default_site, sizeof(struct site));
15 /* Deep-copy the string lists */

  ViewVC Help
Powered by ViewVC 1.1.20