From ff67ef2f6aadd65978bc4f03f5fd522c91a07684 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 30 Aug 2013 16:46:12 +0200 Subject: Add missing format string for error A call to `error' lacked a format string, leading to build failure when compiling with stricter CFLAGS. * debug.c (debug_set_file): Add format string in invocation of error. --- ChangeLog | 5 +++++ debug.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cb70761c4..ad5aba26d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-30 Pino Toscano + + * debug.c (debug_set_file): Add format string in invocation of + error. + 2013-07-08 Samuel Thibault * tarfs.c (tarfs_parse_opts): Rename sate parameter into state. diff --git a/debug.c b/debug.c index 2f61fbc63..6b62432ef 100644 --- a/debug.c +++ b/debug.c @@ -43,7 +43,7 @@ debug_set_file (const char *name) { debug_file = fopen (name, "w+"); if (!debug_file) - error (0, errno, name); + error (0, errno, "%s", name); } } -- cgit v1.2.3