summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-13 09:58:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-13 09:58:10 -0700
commitec8f2176a7d565ab55c00bebe0f31ae83c368945 (patch)
treee4e091908f030aaab49c847872360b5fee1e9651 /profile.c
parent8d546bc8c082e8231e63b0afa371e5f5408c5e44 (diff)
downloadsubsurface-ec8f2176a7d565ab55c00bebe0f31ae83c368945.tar.gz
Fix questionable build errors
Some Linux distributions have compiler settings that cause calls to the printf family of functions to fail if they have just one argument and that argument isn't a literal string. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index 82719bbd2..1e8461b70 100644
--- a/profile.c
+++ b/profile.c
@@ -1209,13 +1209,13 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
if(entry->ndl_calc < MAX_PROFILE_DECO)
put_format(b, translate("gettextFromC", "NDL: %umin (calc)\n"), DIV_UP(entry->ndl_calc, 60));
else
- put_format(b, translate("gettextFromC", "NDL: >2h (calc)\n"));
+ put_format(b, "%s", translate("gettextFromC", "NDL: >2h (calc)\n"));
}
if (entry->tts_calc) {
if (entry->tts_calc < MAX_PROFILE_DECO)
put_format(b, translate("gettextFromC", "TTS: %umin (calc)\n"), DIV_UP(entry->tts_calc, 60));
else
- put_format(b, translate("gettextFromC", "TTS: >2h (calc)\n"));
+ put_format(b, "%s", translate("gettextFromC", "TTS: >2h (calc)\n"));
}
if (entry->rbt)
put_format(b, translate("gettextFromC", "RBT: %umin\n"), DIV_UP(entry->rbt, 60));