From bdedf46e4c53e6b8e8134c4ab465b32ae1043e2e Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 20 Oct 2013 11:56:38 +0300 Subject: Get rid of compiler warning on format strings This gets rid of compiler warnings "format not a string literal and no format arguments [-Wformat-security]". E.g. when building distribution packages these warnings are often treated as errors preventing the build (with good reason). Signed-off-by: Miika Turkia --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index 129e2dc4b..8e1a052a9 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1891,7 +1891,7 @@ extern int dm4_dive(void *param, int columns, char **data, char **column) snprintf(get_events, sizeof(get_events) - 1, get_events_template, cur_dive->number); retval = sqlite3_exec(handle, get_events, &dm4_events, 0, &err); if (retval != SQLITE_OK) { - fprintf(stderr, translate("gettextFromC","Database query get_events failed.\n")); + fprintf(stderr, "%s", translate("gettextFromC","Database query get_events failed.\n")); return 1; } -- cgit v1.2.3-70-g09d2