From: Axel Beckert Date: Sun, 16 Sep 2012 17:02:11 +0000 (+0200) Subject: Add patch to fix FTBFS with -Werror=format-security X-Git-Tag: debian/1.01b-16~13 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=1bbaee79aae178306e3cf841a2e53089ad7533be;p=pkg%2Fmmv.git Add patch to fix FTBFS with -Werror=format-security --- diff --git a/debian/changelog b/debian/changelog index 1ef5601..95945ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 index 0000000..3b813f1 --- /dev/null +++ b/debian/patches/format-security.diff @@ -0,0 +1,17 @@ +Description: Fixes build failure with -Werror=format-security + ("format not a string literal and no format arguments") +Author: Axel Beckert + +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) diff --git a/debian/patches/series b/debian/patches/series index 2342fbf..9111cc7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ patches-as-of-mmv-1.01b-15.diff +format-security.diff