]> git.deb.at Git - pkg/mmv.git/blob - debian/patches/format-security.diff
Add patch to fix FTBFS with -Werror=format-security
[pkg/mmv.git] / debian / patches / format-security.diff
1 Description: Fixes build failure with -Werror=format-security
2  ("format not a string literal and no format arguments")
3 Author: Axel Beckert <abe@debian.org>
4
5 Index: mmv/mmv.c
6 ===================================================================
7 --- mmv.orig/mmv.c      2012-09-16 18:51:28.000000000 +0200
8 +++ mmv/mmv.c   2012-09-16 18:59:20.600733584 +0200
9 @@ -2828,7 +2828,7 @@
10         static FILE *tty = NULL;
11         int c, r;
12  
13 -       fprintf(stderr, m);
14 +       fprintf(stderr, "%s", m);
15         if (tty == NULL && (tty = fopen(TTY, "r")) == NULL) {
16                 fprintf(stderr, "Can not open %s to get reply.\n", TTY);
17                 if (failact == -1)