[SCM] hydrogen/master: Prevent FTBFS with -Werror=format-security enabled (Closes: #643406).

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Thu Dec 15 18:14:24 UTC 2011


The following commit has been merged in the master branch:
commit dea6a9a24c1a321ffbd33d21c8a4cfaf3512d298
Author: Alessio Treglia <alessio at debian.org>
Date:   Thu Dec 15 19:14:07 2011 +0100

    Prevent FTBFS with -Werror=format-security enabled (Closes: #643406).

diff --git a/debian/patches/1006_werror_format_security.patch b/debian/patches/1006_werror_format_security.patch
new file mode 100644
index 0000000..8f7f4f4
--- /dev/null
+++ b/debian/patches/1006_werror_format_security.patch
@@ -0,0 +1,22 @@
+Author: Matthias Klose <doko at ubuntu.com>
+Description: Prevent FTBFS with -Werror=format-security enabled.
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643406
+Forwarded: no
+---
+ libs/hydrogen/src/object.cpp |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- hydrogen.orig/libs/hydrogen/src/object.cpp
++++ hydrogen/libs/hydrogen/src/object.cpp
+@@ -239,9 +239,9 @@ void* loggerThread_func( void* param )
+ 		QString tmpString;
+ 		for( it = last = queue.begin() ; it != queue.end() ; ++it ) {
+ 			last = it;
+-			printf( it->toLocal8Bit() );
++			printf( "%s", it->toLocal8Bit() );
+ 			if( pLogFile ) {
+-				fprintf( pLogFile, it->toLocal8Bit() );
++				fprintf( pLogFile, "%s", it->toLocal8Bit() );
+ 				fflush( pLogFile );
+ 			}
+ 		}
diff --git a/debian/patches/series b/debian/patches/series
index 931a02a..293e9ed 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 1003_gcc45.patch
 1004_indirect_linking.patch
 1005_name_shouldnt_repeat_genericname.patch
+1006_werror_format_security.patch

-- 
hydrogen packaging



More information about the pkg-multimedia-commits mailing list