Commit 4cda2f38 authored by Axel Beckert's avatar Axel Beckert

Fix FTBFS with -Werror=format-security

parent 5113ed83
......@@ -2,6 +2,7 @@ mp4h (1.3.1-7) UNRELEASED; urgency=low
* Fix FTBFS on GNU/Hurd (Closes: #653362) Thanks to Svante Signell for
investigation and the patch!
* Fix FTBFS with -Werror=format-security.
* Remove manual DEB_BUILD_OPTIONS check around dh_strip as dh_strip does
that itself.
* Bump debhelper compatibility to 9
......
Description: Fixes FTBFS with -Werror=format-security
mp4h.c:358:11: error: format not a string literal and no format arguments [-Werror=format-security]
mp4h.c:472:17: error: format not a string literal and no format arguments [-Werror=format-security]
Author: Axel Beckert <abe@debian.org>
Index: mp4h/src/mp4h.c
===================================================================
--- mp4h.orig/src/mp4h.c 2013-04-23 21:54:05.780917115 +0200
+++ mp4h/src/mp4h.c 2013-04-24 00:30:39.825978669 +0200
@@ -355,7 +355,7 @@
case 'o':
if (!debug_set_output (optarg))
- error (0, errno, optarg);
+ error (0, errno, "%s", optarg);
break;
case 's':
@@ -469,7 +469,7 @@
fp = path_search (argv[optind], &filename);
if (fp == NULL)
{
- error (0, errno, argv[optind]);
+ error (0, errno, "%s", argv[optind]);
MP4HERROR ((warning_status, 0,
_("%s: file skipped"), argv[optind]));
continue;
......@@ -3,3 +3,4 @@
573599-regression.diff
lintian-cleanup-tg.diff
653362-fix-ftbfs-on-hurd.diff
fix-ftbfs-with-hardening-flags.diff
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment