From 72e6c52b06db8189561454615d238446f924c539 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 26 Jul 2015 07:32:03 -0700 Subject: Remove bogus fix In commit 156ad42a3cc9 ("snprintf is happier if it has an explicit string literal format argument") I got a little too aggressive making sure there are string literal format strings... Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 2d2b3f716..c2cfe7461 100644 --- a/planner.c +++ b/planner.c @@ -544,7 +544,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool } else if (prefs.deco_mode == VPMB){ snprintf(temp, sizeof(temp), "%s", translate("gettextFromC", "based on VPM-B")); } else if (prefs.deco_mode == RECREATIONAL){ - snprintf(temp, sizeof(temp), "%s", translate("gettextFromC", "recreational mode based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"), + snprintf(temp, sizeof(temp), translate("gettextFromC", "recreational mode based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"), diveplan->gflow, diveplan->gfhigh); } len += snprintf(buffer + len, sizeof(buffer) - len, "
%s
%s

", -- cgit v1.2.3-70-g09d2