[packages/faac] - fix building with -Wformat-security - rel 2

baggins baggins at pld-linux.org
Wed Feb 13 17:06:58 CET 2013


commit 1e4d6dfd8e12d1d3f83f7b238b01cc0c55952382
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Feb 13 17:06:34 2013 +0100

    - fix building with -Wformat-security
    - rel 2

 faac.spec             |  4 +++-
 format-security.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
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':
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/faac.git/commitdiff/1e4d6dfd8e12d1d3f83f7b238b01cc0c55952382



More information about the pld-cvs-commit mailing list