From 1e4d6dfd8e12d1d3f83f7b238b01cc0c55952382 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 13 Feb 2013 17:06:34 +0100 Subject: [PATCH] - fix building with -Wformat-security - rel 2 --- faac.spec | 4 +++- format-security.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 format-security.patch diff --git a/faac.spec b/faac.spec index d01fdbb..811beaa 100644 --- a/faac.spec +++ b/faac.spec @@ -7,13 +7,14 @@ Summary: Freeware Advanced Audio Codec Summary(pl.UTF-8): Freeware Advanced Audio Codec - darmowy zaawansowany kodek dźwięku Name: faac Version: 1.28 -Release: 1 +Release: 2 License: LGPL v2.1+ Group: Applications/Sound Source0: http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz # Source0-md5: 80763728d392c7d789cde25614c878f6 Patch0: %{name}-link.patch Patch1: %{name}-mp4v2.patch +Patch2: format-security.patch URL: http://www.audiocoding.com/ BuildRequires: autoconf >= 2.50 BuildRequires: automake @@ -74,6 +75,7 @@ Statyczna biblioteka faac. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %{__libtoolize} diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 0000000..028d214 --- /dev/null +++ b/format-security.patch @@ -0,0 +1,11 @@ +--- faac-1.28/frontend/main.c~ 2013-02-13 16:59:01.694994119 +0100 ++++ faac-1.28/frontend/main.c 2013-02-13 17:00:07.332255478 +0100 +@@ -715,7 +715,7 @@ + break; + #endif + case 'L': +- fprintf(stderr, faac_copyright_string); ++ fputs(faac_copyright_string, stderr); + dieMessage = license; + break; + case 'X': -- 2.43.0