diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 09:58:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 09:58:10 -0700 |
commit | ec8f2176a7d565ab55c00bebe0f31ae83c368945 (patch) | |
tree | e4e091908f030aaab49c847872360b5fee1e9651 | |
parent | 8d546bc8c082e8231e63b0afa371e5f5408c5e44 (diff) | |
download | subsurface-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>
-rw-r--r-- | profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |