diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2013-08-30 16:46:12 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2013-08-30 16:46:12 +0200 |
commit | ff67ef2f6aadd65978bc4f03f5fd522c91a07684 (patch) | |
tree | 5f896acbd5bb0bb8cc9ea49f7a60e1cda5cd30cc | |
parent | 7a05d6fac03cd1d96ef219ad64cb2a61c8300c47 (diff) |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | debug.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2013-08-30 Pino Toscano <toscano.pino@tiscali.it> + + * debug.c (debug_set_file): Add format string in invocation of + error. + 2013-07-08 Samuel Thibault <samuel.thibault@ens-lyon.org> * tarfs.c (tarfs_parse_opts): Rename sate parameter into state. @@ -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); } } |