[Pkg-wmaker-commits] [wmrack] 52/97: debian/patches/add_format_arg_to_fprintf.patch: Avoid FTBFS due to -Werror=security build flag.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 22 02:42:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmrack.

commit e7c985622c293251a0ce8f147c04f9cb347084ac
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Aug 14 14:27:55 2014 -0500

    debian/patches/add_format_arg_to_fprintf.patch: Avoid FTBFS due to -Werror=security build flag.
---
 debian/patches/add_format_arg_to_fprintf.patch | 17 +++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/add_format_arg_to_fprintf.patch b/debian/patches/add_format_arg_to_fprintf.patch
new file mode 100644
index 0000000..b4cd233
--- /dev/null
+++ b/debian/patches/add_format_arg_to_fprintf.patch
@@ -0,0 +1,17 @@
+Description: Add format argument to fprintf.
+ This patch avoids a "format not a string literal and no format arguments"
+ warning, which results in FTBFS with -Werror=format-security.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-08-10
+
+--- a/xpmicon.c
++++ b/xpmicon.c
+@@ -79,7 +79,7 @@
+   if (strncmp(buffer,"/* XPM */\nstatic char *",23)!=0)
+     {
+       fprintf(stderr,"parseXpm: invalid start of xpm\n");
+-      fprintf(stderr,buffer);
++      fprintf(stderr, "%s", buffer);
+       return 1;
+     }
+   /* skip spaces */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..35e8979
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add_format_arg_to_fprintf.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmrack.git



More information about the Pkg-wmaker-commits mailing list