Fix compile warning

warning: format not a string literal and no format arguments

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-08-06 07:39:23 +03:00 committed by Dirk Hohndel
parent d85d08e14f
commit 4b9b19cec6

View file

@ -534,7 +534,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
return;
if (error) {
snprintf(temp, sizeof(temp),
snprintf(temp, sizeof(temp), "%s",
translate("gettextFromC", "Decompression calculation aborted due to excessive time"));
snprintf(buffer, sizeof(buffer), "<span style='color: red;'>%s </span> %s<br>",
translate("gettextFromC", "Warning:"), temp);