[gtk-v4l] Fix FTBFS with -Werror=format-security (#1037113, #1106738)

Yaakov Selkowitz yselkowitz at fedoraproject.org
Tue Jul 8 00:03:23 UTC 2014


commit 1c1796523553f6a1502630b69e2796bf6436bd4c
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Thu Jun 26 18:49:25 2014 -0500

    Fix FTBFS with -Werror=format-security (#1037113, #1106738)

 0002-gtk-v4l-Werror-format-security.patch |   11 +++++++++++
 gtk-v4l.spec                              |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/0002-gtk-v4l-Werror-format-security.patch b/0002-gtk-v4l-Werror-format-security.patch
new file mode 100644
index 0000000..44d82ff
--- /dev/null
+++ b/0002-gtk-v4l-Werror-format-security.patch
@@ -0,0 +1,11 @@
+--- gtk-v4l-0.4-orig/src/gtk-v4l.c	2012-01-20 04:03:01.000000000 -0600
++++ gtk-v4l-0.4/src/gtk-v4l.c	2014-06-10 22:50:35.819186671 -0500
+@@ -36,7 +36,7 @@ static void show_error_dialog (const gch
+                                    GTK_DIALOG_DESTROY_WITH_PARENT,
+                                    GTK_MESSAGE_ERROR,
+                                    GTK_BUTTONS_OK, 
+-                                   error);
++                                   "%s", error);
+ 
+   gtk_dialog_run (GTK_DIALOG (dialog));
+   gtk_widget_destroy (dialog);
diff --git a/gtk-v4l.spec b/gtk-v4l.spec
index afe4f91..46dfae3 100644
--- a/gtk-v4l.spec
+++ b/gtk-v4l.spec
@@ -1,12 +1,13 @@
 Name:		gtk-v4l
 Version:	0.4
-Release:	7%{?dist}
+Release:	8%{?dist}
 Summary:	Video4Linux Device Preferences
 Group:		Applications/Multimedia
 License:	LGPLv2+
 URL:		http://fedorahosted.org/gtk-v4l
 Source0:	https://fedorahosted.org/releases/g/t/%{name}/%{name}-%{version}.tar.gz
 Patch0:         0001-gtk-v4l-device-remove-source-on-finalize.patch
+Patch1:         0002-gtk-v4l-Werror-format-security.patch
 BuildRequires:	scrollkeeper
 BuildRequires:	libv4l-devel >= 0.6
 BuildRequires:	gtk3-devel >= 3.0
@@ -28,6 +29,7 @@ Contains library and header files for gtk-v4l
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 
 %build
@@ -59,6 +61,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 
 %changelog
+* Tue Jun 10 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 0.4-8
+- Fix FTBFS with -Werror=format-security (#1037113, #1106738)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list