]> git.pld-linux.org Git - packages/ogdi.git/commitdiff
- added format patch to workaround overzealous -Werror=format-security in gcc 4.7.x auto/th/ogdi-3.1.6-5
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Sep 2012 15:41:03 +0000 (17:41 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Sep 2012 15:41:03 +0000 (17:41 +0200)
ogdi-format.patch [new file with mode: 0644]
ogdi.spec

diff --git a/ogdi-format.patch b/ogdi-format.patch
new file mode 100644 (file)
index 0000000..d36475c
--- /dev/null
@@ -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" );
+         }
+     }
index e13eb80ed53929ef90073dd0558cd2d9d07d1490..311fff4c08d2209feb7eb8972595305a2fdafbf4 100644 (file)
--- 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} .
 
This page took 0.077244 seconds and 4 git commands to generate.