]> git.deb.at Git - pkg/mmv.git/commitdiff
Add patch to fix FTBFS with -Werror=format-security
authorAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 17:02:11 +0000 (19:02 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 17:14:59 +0000 (19:14 +0200)
debian/changelog
debian/patches/format-security.diff [new file with mode: 0644]
debian/patches/series

index 1ef56010f18b428b444caebdf90f1c7409f47c0a..95945ff72ac0821288661d4aa55e31e86486dfa6 100644 (file)
@@ -3,6 +3,7 @@ mmv (1.01b-16) UNRELEASED; urgency=low
   * Add myself as Uploader.
   * Bump Standards-Version to 3.9.3 (no other changes necessary)
   * Switch to source format "3.0 (quilt)"
+  * Add patch to fix FTBFS with -Werror=format-security
   * Use debhelper (v9) in many places, add build-dependency
   * Add lintian overrides for no-upstream-changelog and no-homepage-field.
 
diff --git a/debian/patches/format-security.diff b/debian/patches/format-security.diff
new file mode 100644 (file)
index 0000000..3b813f1
--- /dev/null
@@ -0,0 +1,17 @@
+Description: Fixes build failure with -Werror=format-security
+ ("format not a string literal and no format arguments")
+Author: Axel Beckert <abe@debian.org>
+
+Index: mmv/mmv.c
+===================================================================
+--- mmv.orig/mmv.c     2012-09-16 18:51:28.000000000 +0200
++++ mmv/mmv.c  2012-09-16 18:59:20.600733584 +0200
+@@ -2828,7 +2828,7 @@
+       static FILE *tty = NULL;
+       int c, r;
+-      fprintf(stderr, m);
++      fprintf(stderr, "%s", m);
+       if (tty == NULL && (tty = fopen(TTY, "r")) == NULL) {
+               fprintf(stderr, "Can not open %s to get reply.\n", TTY);
+               if (failact == -1)
index 2342fbf1283764de12fa1f58eeb144f9d13664fe..9111cc7f089c1e06b454ca77c8697ec0716663b7 100644 (file)
@@ -1 +1,2 @@
 patches-as-of-mmv-1.01b-15.diff
+format-security.diff