From 707b9f066649daa1992b22eb4879d47cc669607e Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 27 Jun 2014 08:04:46 +0200 Subject: Close snprintf warning Gcc yells: warning: format not a string literal and no format arguments This closes that warning. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 13a9a489a..fcdfe01dc 100644 --- a/planner.c +++ b/planner.c @@ -634,7 +634,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool lastdepth = dp->depth; } while ((dp = nextdp) != NULL); - snprintf(temp, sizeof(temp), translate("gettextFromC", "Gas consumption:")); + snprintf(temp, sizeof(temp), "%s", translate("gettextFromC", "Gas consumption:")); len += snprintf(buffer + len, sizeof(buffer) - len, "

%s
", temp); for (gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) { double volume; -- cgit v1.2.3-70-g09d2