summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-06-27 08:04:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-27 06:54:44 -0700
commit707b9f066649daa1992b22eb4879d47cc669607e (patch)
treede272a2745b9e1931e5c535db17c22d8bc170543 /planner.c
parent26855234acef1af7eff69fa6b6bc87880471cae3 (diff)
downloadsubsurface-707b9f066649daa1992b22eb4879d47cc669607e.tar.gz
Close snprintf warning
Gcc yells: warning: format not a string literal and no format arguments This closes that warning. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
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, "</tbody></table></div><div><br>%s<br>", temp);
for (gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) {
double volume;