File: 08_gcc_format_security.patch

package info (click to toggle)
cdargs 1.35-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 724 kB
  • ctags: 398
  • sloc: cpp: 1,185; sh: 491; lisp: 70; makefile: 14; csh: 3
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix for FTBFS with -Werror=format-security from dpkg-buildflags
Forwarded: no
Author: Mike Miller <mtmiller@ieee.org>
Last-Update: 2012-06-06

--- a/src/cdargs.cc
+++ b/src/cdargs.cc
@@ -1301,7 +1301,7 @@ void helpscreen(void) {
 
 void fatal_exit(char* msg) {
     endwin();
-    fprintf(stderr, msg);
+    fprintf(stderr, "%s", msg);
     exit(1);
 }