]> git.pld-linux.org Git - packages/unace.git/commitdiff
Add patch to fix build with -Werror=format-security
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 14:10:25 +0000 (15:10 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 14:10:25 +0000 (15:10 +0100)
unace-format-security.patch [new file with mode: 0644]
unace.spec

diff --git a/unace-format-security.patch b/unace-format-security.patch
new file mode 100644 (file)
index 0000000..64734d0
--- /dev/null
@@ -0,0 +1,21 @@
+diff -urN unace/unace.c unace.new/unace.c
+--- unace/unace.c      1998-07-01 10:29:10.000000000 +0200
++++ unace.new/unace.c  2013-01-30 15:07:54.736449237 +0100
+@@ -262,7 +262,7 @@
+       printf("Authenticity Verification:");   // print the AV
+       sprintf(av_str, "\ncreated on %d.%d.%d by ",
+               ts_day(adat.time_cr), ts_month(adat.time_cr), ts_year(adat.time_cr));
+-      printf(av_str);
++      fputs(av_str, stdout);
+       strncpy(av_str, mhead.AV, mhead.AV_SIZE);
+       av_str[mhead.AV_SIZE] = 0;
+       printf("%s\n\n", av_str);
+@@ -560,7 +560,7 @@
+    INT show_help,
+        arg_cnt = 1;
+-   printf(version);
++   fputs(version, stdout);
+    show_help=0;
+    if (argc < 3 || strlen(argv[1]) > 1 || argv[argc-1][0] == '-')
index e0254d986563311f8a9d258c97ab1da170a91806..52760250e9392896a6a64c3dab79196bc60a9c21 100644 (file)
@@ -8,6 +8,7 @@ License:        Freeware
 Group:         Applications/Archiving
 Source0:       %{name}pub.zip
 # Source0-md5: 1a73dda37e4d8d8ef70f27a858e32a55
+Patch0:                %{name}-format-security.patch
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,6 +25,7 @@ przeglądania zawartości archiwów stworzonych przez program ACE.
 %prep
 %setup -q -c -T
 unzip -qa %{SOURCE0}
+%patch0 -p1
 
 %build
 cp -f unix/makefile .
This page took 0.073316 seconds and 4 git commands to generate.