summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-25 13:43:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-25 13:43:44 -0700
commit156ad42a3cc9e17082d13bcb232de551279f4c8b (patch)
tree729223a4c33689185260df3e6a07570c6b17869a /planner.c
parentea574b6b11d18670779bab3154d41a09cb95460d (diff)
downloadsubsurface-156ad42a3cc9e17082d13bcb232de551279f4c8b.tar.gz
snprintf is happier if it has an explicit string literal format argument
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index 9fe5c1d05..216d79138 100644
--- a/planner.c
+++ b/planner.c
@@ -542,9 +542,9 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
snprintf(temp, sizeof(temp), translate("gettextFromC", "based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"),
diveplan->gflow, diveplan->gfhigh);
} else if (prefs.deco_mode == VPMB){
- snprintf(temp, sizeof(temp), translate("gettextFromC", "based on VPM-B"));
+ snprintf(temp, sizeof(temp), "%s", translate("gettextFromC", "based on VPM-B"));
} else if (prefs.deco_mode == RECREATIONAL){
- snprintf(temp, sizeof(temp), translate("gettextFromC", "recreational mode based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"),
+ snprintf(temp, sizeof(temp), "%s", 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, "<div><b>%s</b><br>%s</div><br>",