[libkni3] Fix FTBFS with -Werror=format-security (#1037167, #1106032)

Yaakov Selkowitz yselkowitz at fedoraproject.org
Thu Jul 31 06:23:49 UTC 2014


commit d670e07c43d6b2a5466568aafd5748f848441ccd
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Thu Jul 31 01:17:56 2014 -0500

    Fix FTBFS with -Werror=format-security (#1037167, #1106032)

 kni-3.9.2-format-security.patch |   11 +++++++++++
 libkni3.spec                    |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/kni-3.9.2-format-security.patch b/kni-3.9.2-format-security.patch
new file mode 100644
index 0000000..9fb09bb
--- /dev/null
+++ b/kni-3.9.2-format-security.patch
@@ -0,0 +1,11 @@
+--- a/demo/perfo/perfo.cpp
++++ b/demo/perfo/perfo.cpp
+@@ -15,7 +15,7 @@ int maxCnt;	//global variable: count of communication tries
+ 
+ void statKatRecv(const char strTitle[], long i, long j, clock_t t, long l) {
+ 	printf("-------------------------------------------\n");
+-	printf(strTitle); printf("\tAverage: %.3f [ms]\n", (double)t/(double)l);
++	printf("%s", strTitle); printf("\tAverage: %.3f [ms]\n", (double)t/(double)l);
+ 	printf("-------------------------------------------\n");
+ 	printf("RECV_NO_ERR		: %.3f %ld\n", (double)i/(double)l, i);
+ 	printf("RECV_READING_ERR	: %.3f %ld\n", (double)j/(double)l, j);
diff --git a/libkni3.spec b/libkni3.spec
index ceeae9a..ec4caea 100644
--- a/libkni3.spec
+++ b/libkni3.spec
@@ -1,6 +1,6 @@
 Name:           libkni3
 Version:        3.9.2
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        C++ KNI library v3 for the Katana 300 robot arm
 
 Group:          System Environment/Libraries
@@ -14,6 +14,7 @@ Patch3:         kni-3.9.2-noexit.patch
 Patch4:         kni-3.9.2-gcc47.patch
 # Make makefiles verbose
 Patch5:         kni-3.9.2-verbose.patch
+Patch6:         kni-3.9.2-format-security.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
@@ -81,6 +82,7 @@ This package contains demo applications for %{name}.
 %patch3 -p1 -b .noexit
 %patch4 -p1 -b .gcc47
 %patch5 -p1
+%patch6 -p1 -b .format
 
 %build
 make CXXFLAGS="%{optflags} -fPIC"
@@ -168,6 +170,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Jul 31 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 3.9.2-24
+- Fix FTBFS with -Werror=format-security (#1037167, #1106032)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.9.2-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list