[qt3] yet another -Werror=format-security error

Kevin Kofler kkofler at fedoraproject.org
Tue Jan 14 03:00:00 UTC 2014


commit 3226ca734552f31b7c75940f98559f4a19bc64d8
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Tue Jan 14 04:00:02 2014 +0100

    yet another -Werror=format-security error

 qt-x11-free-3.3.8b-#1037297.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/qt-x11-free-3.3.8b-#1037297.patch b/qt-x11-free-3.3.8b-#1037297.patch
index 6fc0340..eb1ea30 100644
--- a/qt-x11-free-3.3.8b-#1037297.patch
+++ b/qt-x11-free-3.3.8b-#1037297.patch
@@ -1,3 +1,15 @@
+diff -ur qt-x11-free-3.3.8b/src/kernel/qjpegio.cpp qt-x11-free-3.3.8b-#1037297/src/kernel/qjpegio.cpp
+--- qt-x11-free-3.3.8b/src/kernel/qjpegio.cpp	2008-01-15 20:09:13.000000000 +0100
++++ qt-x11-free-3.3.8b-#1037297/src/kernel/qjpegio.cpp	2014-01-14 03:59:20.000000000 +0100
+@@ -80,7 +80,7 @@
+     my_error_mgr* myerr = (my_error_mgr*) cinfo->err;
+     char buffer[JMSG_LENGTH_MAX];
+     (*cinfo->err->format_message)(cinfo, buffer);
+-    qWarning(buffer);
++    qWarning("%s", buffer);
+     longjmp(myerr->setjmp_buffer, 1);
+ }
+ 
 diff -ur qt-x11-free-3.3.8b/src/moc/moc.y qt-x11-free-3.3.8b-#1037297/src/moc/moc.y
 --- qt-x11-free-3.3.8b/src/moc/moc.y	2008-01-15 20:09:13.000000000 +0100
 +++ qt-x11-free-3.3.8b-#1037297/src/moc/moc.y	2014-01-14 03:39:28.000000000 +0100


More information about the scm-commits mailing list