[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/sane-frontends/devel sane-frontends-1.0.14-badcode.patch, NONE, 1.1 sane-frontends.spec, 1.15, 1.16 sane-frontends-badcode.patch, 1.1, NONE



Author: nphilipp

Update of /cvs/dist/rpms/sane-frontends/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv7593

Modified Files:
	sane-frontends.spec 
Added Files:
	sane-frontends-1.0.14-badcode.patch 
Removed Files:
	sane-frontends-badcode.patch 
Log Message:
update badcode patch


sane-frontends-1.0.14-badcode.patch:
 xcam.c       |    2 +-
 xscanimage.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE sane-frontends-1.0.14-badcode.patch ---
--- sane-frontends-1.0.14/src/xscanimage.c.badcode	2005-11-21 15:29:15.000000000 +0100
+++ sane-frontends-1.0.14/src/xscanimage.c	2005-11-21 15:33:32.000000000 +0100
@@ -1284,7 +1284,7 @@
     {				/* We are running in standalone mode */
       /* test for pnm formats */
       strncpy (testfilename, preferences.filename, sizeof (testfilename));
-      testfilename[sizeof (testfilename)] = 0;
+      testfilename[sizeof (testfilename) - 1] = 0;
       g_strreverse (testfilename);
       if (!((!strncmp (testfilename, "mnp.", 4)) ||
 	    (!strncmp (testfilename, "mgp.", 4)) ||
--- sane-frontends-1.0.14/src/xcam.c.badcode	2005-06-02 18:32:09.000000000 +0200
+++ sane-frontends-1.0.14/src/xcam.c	2005-11-21 15:32:42.000000000 +0100
@@ -1289,7 +1289,7 @@
 
       /* test for pnm formats */
       strncpy (testfilename, preferences.filename, sizeof (testfilename));
-      testfilename[sizeof (testfilename)] = 0;
+      testfilename[sizeof (testfilename) - 1] = 0;
       g_strreverse (testfilename);
       if (!((!strncmp (testfilename, "mnp.", 4)) ||
 	    (!strncmp (testfilename, "mgp.", 4)) ||


Index: sane-frontends.spec
===================================================================
RCS file: /cvs/dist/rpms/sane-frontends/devel/sane-frontends.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- sane-frontends.spec	21 Nov 2005 10:03:15 -0000	1.15
+++ sane-frontends.spec	21 Nov 2005 14:35:22 -0000	1.16
@@ -4,7 +4,7 @@
 Summary: Graphical frontend to SANE
 URL:       http://www.sane-project.org
 Source0:    ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
-Patch0: sane-frontends-badcode.patch
+Patch0: sane-frontends-1.0.14-badcode.patch
 License: GPL
 Group: Applications/System
 BuildRequires: gtk2-devel gimp-devel libjpeg-devel
@@ -48,6 +48,7 @@
 * Mon Nov 21 2005 Nils Philippsen <nphilipp redhat com> 1.0.14-1
 - version 1.0.14
 - fix build requires
+- update badcode patch
 
 * Wed Mar  2 2005 Tim Waugh <twaugh redhat com> 1.0.13-2
 - Rebuild for new GCC.


--- sane-frontends-badcode.patch DELETED ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]