From: Sebastian Harl Date: Sat, 30 Jun 2012 12:48:12 +0000 (+0200) Subject: patches/: Added Wformat-security.dpatch. X-Git-Tag: pfstools-1.8.5-1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c6dac21ca20f88ea9cb33445c8c2d4c64bb9e47;p=pkg-pfstools.git patches/: Added Wformat-security.dpatch. … fixing some issues identified by -Wformat-security. --- diff --git a/debian/changelog b/debian/changelog index 01b6bfe..c819ee6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ pfstools (1.8.5-1) unstable; urgency=low - Updated standards-version to 3.9.3. * debian/copyright: - Updated for upstream version 1.8.5. + * debian/patches/: + - Added Wformat-security.dpatch, fixing some issues identified by + -Wformat-security. -- Sebastian Harl Sat, 31 Jul 2010 19:31:26 +0200 diff --git a/debian/patches/Wformat-security.dpatch b/debian/patches/Wformat-security.dpatch new file mode 100644 index 0000000..cf07a76 --- /dev/null +++ b/debian/patches/Wformat-security.dpatch @@ -0,0 +1,15 @@ +Description: Fix certain issues identified by -Wformat-security. +Author: Sebastian Harl + +--- a/src/pfs/pfs.cpp ++++ b/src/pfs/pfs.cpp +@@ -525,8 +525,7 @@ static void writeTags( const TagContaine + TagList::const_iterator it; + fprintf( out, "%d" PFSEOL, tags->getSize() ); + for( it = tags->tagsBegin(); it != tags->tagsEnd(); it++ ) { +- fprintf( out, (const char*)(it->c_str()) ); +- fprintf( out, PFSEOL ); ++ fprintf( out, "%s" PFSEOL, (const char*)(it->c_str()) ); + } + } + diff --git a/debian/patches/series b/debian/patches/series index d5b9a75..6fad66d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ octave-nargin.dpatch octave-signal.dpatch +Wformat-security.dpatch