diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-06-27 08:04:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-27 06:54:44 -0700 |
commit | 707b9f066649daa1992b22eb4879d47cc669607e (patch) | |
tree | de272a2745b9e1931e5c535db17c22d8bc170543 /planner.c | |
parent | 26855234acef1af7eff69fa6b6bc87880471cae3 (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |