rpms/xar/devel xar-1.5.1-memset.patch,NONE,1.1 xar.spec,1.2,1.3

Matthias Saou (thias) fedora-extras-commits at redhat.com
Wed Aug 8 08:31:14 UTC 2007


Author: thias

Update of /cvs/extras/rpms/xar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11341

Modified Files:
	xar.spec 
Added Files:
	xar-1.5.1-memset.patch 
Log Message:
Patch memset call with swapped arguments (Dave Jones).


xar-1.5.1-memset.patch:

--- NEW FILE xar-1.5.1-memset.patch ---
diff -Naupr xar-1.5.1.orig/lib/archive.c xar-1.5.1/lib/archive.c
--- xar-1.5.1.orig/lib/archive.c	2007-06-10 17:02:45.000000000 +0200
+++ xar-1.5.1/lib/archive.c	2007-08-08 10:15:32.000000000 +0200
@@ -354,7 +354,7 @@ int xar_close(xar_t x) {
 
 		t = time(NULL);
 		gmtime_r(&t, &tmptm);
-		memset(timestr, sizeof(timestr), 0);
+		memset(timestr, 0, sizeof(timestr));
 		strftime(timestr, sizeof(timestr), "%FT%T", &tmptm);
 		xar_prop_set(XAR_FILE(x), "creation-time", timestr);
 


Index: xar.spec
===================================================================
RCS file: /cvs/extras/rpms/xar/devel/xar.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xar.spec	11 Jul 2007 13:03:42 -0000	1.2
+++ xar.spec	8 Aug 2007 08:30:41 -0000	1.3
@@ -1,13 +1,14 @@
 Summary: The eXtensible ARchiver
 Name: xar
 Version: 1.5.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: BSD
 Group: Applications/Archiving
 URL: http://code.google.com/p/xar/
 Source: http://xar.googlecode.com/files/xar-%{version}.tar.gz
 Patch0: xar-1.5-install.patch
 Patch1: xar-1.5-norpath.patch
+Patch2: xar-1.5.1-memset.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: libxml2-devel
 BuildRequires: openssl-devel
@@ -38,6 +39,7 @@
 %setup -q
 %patch0 -p1 -b .install
 %patch1 -p1 -b .norpath
+%patch2 -p1 -b .memset
 
 
 %build
@@ -73,6 +75,9 @@
 
 
 %changelog
+* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 1.5.1-2
+- Patch memset call with swapped arguments (Dave Jones).
+
 * Wed Jul 11 2007 Matthias Saou <http://freshrpms.net/> 1.5.1-1
 - Update to 1.5.1.
 




More information about the fedora-extras-commits mailing list