From 2c6dac21ca20f88ea9cb33445c8c2d4c64bb9e47 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 30 Jun 2012 14:48:12 +0200 Subject: [PATCH] patches/: Added Wformat-security.dpatch. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … fixing some issues identified by -Wformat-security. --- debian/changelog | 3 +++ debian/patches/Wformat-security.dpatch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 19 insertions(+) create mode 100644 debian/patches/Wformat-security.dpatch 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 -- 2.30.2