]> git.pld-linux.org Git - packages/ziptool.git/commitdiff
Fix build with -Werror=format-security master
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Fri, 15 Feb 2013 16:39:23 +0000 (17:39 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Fri, 15 Feb 2013 16:39:23 +0000 (17:39 +0100)
ziptool-format-security.patch [new file with mode: 0644]
ziptool.spec

diff --git a/ziptool-format-security.patch b/ziptool-format-security.patch
new file mode 100644 (file)
index 0000000..d187410
--- /dev/null
@@ -0,0 +1,11 @@
+--- ziptool-1.4.0/ziptool.c.formatsec  2013-02-15 17:34:38.758667943 +0100
++++ ziptool-1.4.0/ziptool.c    2013-02-15 17:37:55.757600709 +0100
+@@ -542,7 +542,7 @@ static int jazip_get_password(
+        * Keep reading from stdin until a newline '\n' character
+        * is received.
+        */
+-      (void)printf(prompt);
++      (void)fputs(prompt, stdout);
+       (void)fflush(stdout);
+       *buf = '\0';
index 9986460c6a0d6aa1f6bcf0206458d1a8b4902842..bec5bdae69db95832f72472a5dd15ef0c5a5dce4 100644 (file)
@@ -8,6 +8,7 @@ Group:          Applications/System
 Source0:       ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2
 # Source0-md5: e873a323c4cfdca95cb109a704dd34ee
 Patch0:                %{name}-llh.patch
+Patch1:                %{name}-format-security.patch
 URL:           http://wolfpack.twu.net/utilities.html#ziptool
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,6 +23,7 @@ nośnika; jaztool i ziptool pozwalają zrobić to pod Linuksem.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} CFLAGS="%{rpmcflags}"
This page took 0.09278 seconds and 4 git commands to generate.