Code

patches/: Added Wformat-security.dpatch.
authorSebastian Harl <sh@tokkee.org>
Sat, 30 Jun 2012 12:48:12 +0000 (14:48 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 30 Jun 2012 12:48:12 +0000 (14:48 +0200)
… fixing some issues identified by -Wformat-security.

debian/changelog
debian/patches/Wformat-security.dpatch [new file with mode: 0644]
debian/patches/series

index 01b6bfe22baababd802fe4c2363d6b84ce13b4ab..c819ee656775bd82c3572db54fe475fc914a0adb 100644 (file)
@@ -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 <tokkee@debian.org>  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 (file)
index 0000000..cf07a76
--- /dev/null
@@ -0,0 +1,15 @@
+Description: Fix certain issues identified by -Wformat-security.
+Author: Sebastian Harl <tokkee@debian.org>
+
+--- 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()) );
+   }
+ }
index d5b9a7565927219a52e904aa56f8eec793730028..6fad66db98f47b16e024673d6ff728b37835a7df 100644 (file)
@@ -1,2 +1,3 @@
 octave-nargin.dpatch
 octave-signal.dpatch
+Wformat-security.dpatch