summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 062fd5d)
raw | patch | inline | side by side (parent: 062fd5d)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 30 Jun 2012 12:48:12 +0000 (14:48 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 30 Jun 2012 12:48:12 +0000 (14:48 +0200) |
… fixing some issues identified by -Wformat-security.
debian/changelog | patch | blob | history | |
debian/patches/Wformat-security.dpatch | [new file with mode: 0644] | patch | blob |
debian/patches/series | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 01b6bfe22baababd802fe4c2363d6b84ce13b4ab..c819ee656775bd82c3572db54fe475fc914a0adb 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
- 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
--- /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()) );
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index d5b9a7565927219a52e904aa56f8eec793730028..6fad66db98f47b16e024673d6ff728b37835a7df 100644 (file)
--- a/debian/patches/series
+++ b/debian/patches/series
octave-nargin.dpatch
octave-signal.dpatch
+Wformat-security.dpatch