[packages/ogdi] - added format patch to workaround overzealous -Werror=format-security in gcc 4.7.x

qboosh qboosh at pld-linux.org
Sat Sep 29 17:39:54 CEST 2012


commit 025e9522e11a1671cb723d564c18d48deb467292
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 29 17:41:03 2012 +0200

    - added format patch to workaround overzealous -Werror=format-security in gcc 4.7.x

 ogdi-format.patch | 11 +++++++++++
 ogdi.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/ogdi.spec b/ogdi.spec
index e13eb80..311fff4 100644
--- a/ogdi.spec
+++ b/ogdi.spec
@@ -17,6 +17,7 @@ Source1:	http://ogdi.sourceforge.net/ogdi.pdf
 # Source1-md5:	029a8cdcd36bee73df92196ee769040e
 Patch0:		%{name}-pic.patch
 Patch1:		%{name}-proj480.patch
+Patch2:		%{name}-format.patch
 URL:		http://ogdi.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	expat-devel
@@ -86,6 +87,7 @@ Interfejs Tcl do OGDI.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 cp -f %{SOURCE1} .
 
diff --git a/ogdi-format.patch b/ogdi-format.patch
new file mode 100644
index 0000000..d36475c
--- /dev/null
+++ b/ogdi-format.patch
@@ -0,0 +1,11 @@
+--- ogdi-3.1.6/contrib/gdal/gdalbridge.c.orig	2001-05-04 05:13:35.000000000 +0200
++++ ogdi-3.1.6/contrib/gdal/gdalbridge.c	2012-09-29 17:39:38.079579102 +0200
+@@ -124,7 +124,7 @@
+ 
+         if( pfnTest == NULL )
+         {
+-            sprintf( szPath, papszSOFilenames[iSOFile] );
++            strcpy( szPath, papszSOFilenames[iSOFile] );
+             pfnTest = GBGetSymbol( szPath, "GDALOpen" );
+         }
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ogdi.git/commitdiff/025e9522e11a1671cb723d564c18d48deb467292



More information about the pld-cvs-commit mailing list