[tvtime] Fix build error with -Werror=format-security (#1037367, #1107467)
Tomas Smetana
tsmetana at fedoraproject.org
Tue Jun 10 13:22:50 UTC 2014
commit 7d195916be27d5f429c64d2240a3bef0e4acbcf4
Author: Tomas Smetana <tsmetana at redhat.com>
Date: Tue Jun 10 15:21:53 2014 +0200
Fix build error with -Werror=format-security (#1037367, #1107467)
tvtime-1.0.2-wformat.patch | 12 ++++++++++++
tvtime.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/tvtime-1.0.2-wformat.patch b/tvtime-1.0.2-wformat.patch
new file mode 100644
index 0000000..2905570
--- /dev/null
+++ b/tvtime-1.0.2-wformat.patch
@@ -0,0 +1,12 @@
+diff -up tvtime-1.0.2/src/tvtimeosd.c.wformat tvtime-1.0.2/src/tvtimeosd.c
+--- tvtime-1.0.2/src/tvtimeosd.c.wformat 2014-06-10 15:13:47.541863820 +0200
++++ tvtime-1.0.2/src/tvtimeosd.c 2014-06-10 15:14:38.083779422 +0200
+@@ -558,7 +558,7 @@ void tvtime_osd_set_freq_table( tvtime_o
+
+ void tvtime_osd_set_audio_mode( tvtime_osd_t *osd, const char *audiomode )
+ {
+- snprintf( osd->audiomode_text, sizeof( osd->audiomode_text ), audiomode );
++ snprintf( osd->audiomode_text, sizeof( osd->audiomode_text ), "%s", audiomode );
+ }
+
+ void tvtime_osd_set_channel_number( tvtime_osd_t *osd, const char *text )
diff --git a/tvtime.spec b/tvtime.spec
index bf4736c..0260c5b 100644
--- a/tvtime.spec
+++ b/tvtime.spec
@@ -1,7 +1,7 @@
Summary: A high quality TV viewer
Name: tvtime
Version: 1.0.2
-Release: 26%{?dist}
+Release: 27%{?dist}
License: GPLv2+ and LGPLv2+
Group: Applications/Multimedia
URL: http://tvtime.sourceforge.net
@@ -17,6 +17,7 @@ Patch6: tvtime-1.0.2-xss.patch
Patch7: tvtime-1.0.2-videoinput.patch
Patch8: tvtime-1.0.2-png15.patch
Patch9: tvtime-1.0.2-wmicon.patch
+Patch10: tvtime-1.0.2-wformat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -64,6 +65,7 @@ videophiles.
%patch7 -p1 -b .vidioc
%patch8 -p1 -b .png15
%patch9 -p1 -b .wmicon
+%patch10 -p1 -b .wformat
for i in AUTHORS docs/man/{de,es}/*.?; do
iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \
@@ -129,6 +131,9 @@ rm -rf %{buildroot}
%{_bindir}/tvtime
%changelog
+* Tue Jun 10 2014 Tomas Smetana <tsmetana at redhat.com> - 1.0.2-27
+- Fix build error with -Werror=format-security (#1037367, #1107467)
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list