diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-10-20 11:56:38 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-20 15:25:27 +0200 |
commit | bdedf46e4c53e6b8e8134c4ab465b32ae1043e2e (patch) | |
tree | b496f9ff7057490afef3862cb12f95efbc03ed67 /planner.c | |
parent | 88733814964c1765ffc254ae4c9a5fffca03ed11 (diff) | |
download | subsurface-bdedf46e4c53e6b8e8134c4ab465b32ae1043e2e.tar.gz |
Get rid of compiler warning on format strings
This gets rid of compiler warnings "format not a string literal and no
format arguments [-Wformat-security]". E.g. when building distribution
packages these warnings are often treated as errors preventing the
build (with good reason).
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ static int get_gasidx(struct dive *dive, int o2, int he) void get_gas_string(int o2, int he, char *text, int len) { if (is_air(o2, he)) - snprintf(text, len, translate("gettextFromC","air")); + snprintf(text, len, "%s", translate("gettextFromC","air")); else if (he == 0) snprintf(text, len, translate("gettextFromC","EAN%d"), (o2 + 5) / 10); else |