[packages/zip] - fix format string warnings - rel 2
baggins
baggins at pld-linux.org
Thu Dec 13 14:18:07 CET 2012
commit 6ab8700be893956f47deb4b3858b35075e8e00ed
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Dec 13 14:17:48 2012 +0100
- fix format string warnings
- rel 2
format-string.patch | 20 ++++++++++++++++++++
zip.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/zip.spec b/zip.spec
index b8dda0c..4183731 100644
--- a/zip.spec
+++ b/zip.spec
@@ -9,7 +9,7 @@ Summary(tr.UTF-8): PKZIP(tm)-uyumlu .zip dosyaları yaratır
Summary(uk.UTF-8): Утиліта для компресування та упаковки файлів, сумісна з PKZIP
Name: zip
Version: 3.0
-Release: 1
+Release: 2
License: distributable
Group: Applications/Archiving
Source0: ftp://ftp.info-zip.org/pub/infozip/src/%{name}%(echo %{version} | tr -d .).tgz
@@ -18,6 +18,7 @@ Source2: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-ma
# Source2-md5: 72d619b4f70c06c34e5244125b62fdce
Patch0: %{name}-zmem.patch
Patch1: %{name}-multilib.patch
+Patch2: format-security.patch
BuildRequires: bzip2-devel
BuildRequires: unzip
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -81,6 +82,7 @@ bir birleşimi gibidir ve PKZIP uyumludur.
%setup -q -n %{name}30
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} -f unix/Makefile generic \
diff --git a/format-string.patch b/format-string.patch
new file mode 100644
index 0000000..77cd8aa
--- /dev/null
+++ b/format-string.patch
@@ -0,0 +1,20 @@
+--- zip30/zip.c~ 2008-07-05 18:34:06.000000000 +0200
++++ zip30/zip.c 2012-12-13 14:11:42.684570485 +0100
+@@ -1028,7 +1028,7 @@
+
+ for (i = 0; i < sizeof(text)/sizeof(char *); i++)
+ {
+- printf(text[i]);
++ printf("%s",text[i]);
+ putchar('\n');
+ }
+ #ifdef DOS
+@@ -1225,7 +1225,7 @@
+ CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
+ for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
+ {
+- printf(cryptnote[i]);
++ printf("%s", cryptnote[i]);
+ putchar('\n');
+ }
+ ++i; /* crypt support means there IS at least one compilation option */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zip.git/commitdiff/6ab8700be893956f47deb4b3858b35075e8e00ed
More information about the pld-cvs-commit
mailing list