[d52] Fix FTBFS with -Werror=format-security (#1106116)

Yaakov Selkowitz yselkowitz at fedoraproject.org
Mon Jul 7 23:48:46 UTC 2014


commit 3c80f2eba272d606f83b1548784440d35bb58c22
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Mon Jun 16 19:03:03 2014 -0500

    Fix FTBFS with -Werror=format-security (#1106116)

 d52.spec                      |    7 ++++++-
 d52v341-format-security.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/d52.spec b/d52.spec
index 2933fa1..dd6fa8d 100644
--- a/d52.spec
+++ b/d52.spec
@@ -9,12 +9,13 @@
 Name:           d52
 URL:            http://www.brouhaha.com/~eric/software/d52/
 Version:        %{major}.%{minor}.%{patchlevel}
-Release:        3%{?dist}
+Release:        4%{?dist}
 Group:          Development/Languages
 License:        GPLv3+
 Summary:        Disassemblers for 8051, 8048, and Z80 families
 Source:         http://www.brouhaha.com/~eric/software/d52/%{name}v%{major}%{minor}%{patchlevel}.zip
 Patch0:         d52v341-nostrip.patch
+Patch1:         d52v341-format-security.patch
 BuildRequires:  dos2unix
 
 %description
@@ -32,6 +33,7 @@ done
 # Fedora-specific patch to avoid stripping the executables in the build
 # process, as that interferes with creation of a debuginfo RPM.
 %patch0 -p1 -b .nostrip
+%patch1 -p1 -b .format-security
 
 %build
 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
@@ -57,6 +59,9 @@ install -p -m0644 cyclefiles/*.{a51,d52,bin,ctl,HEX,LST,z80} %{buildroot}%{_data
 %doc cyclefiles/cycle_counting.{doc,htm,rtf}
 
 %changelog
+* Mon Jun 16 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 3.4.1-4
+- Fix FTBFS with -Werror=format-security (#1106116)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.4.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/d52v341-format-security.patch b/d52v341-format-security.patch
new file mode 100644
index 0000000..af3a4e5
--- /dev/null
+++ b/d52v341-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/d52pass2.c b/d52pass2.c
+index ec45973..9acbb30 100644
+--- a/d52pass2.c
++++ b/d52pass2.c
+@@ -932,7 +932,7 @@ void dodir(FILE *fp, int adrs)
+ 	}
+ 	else if (dir < 0x80)
+ 	{
+-		kcnt += fprintf(fp, rbname[dir].dent);
++		kcnt += fprintf(fp, "%s", rbname[dir].dent);
+ 		dirregs[dir] |= 1;
+ 	}
+ 	else


More information about the scm-commits mailing list