From ec8f2176a7d565ab55c00bebe0f31ae83c368945 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 13 Oct 2015 09:58:10 -0700 Subject: [PATCH] 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 --- profile.c | 4 ++-- 1 file 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));