aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-08-06 07:39:23 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-06 06:03:33 -0700
commit4b9b19cec6e975d70511a4994d0634855234ae59 (patch)
tree8e7140b266379507dadea116fc01d34178ec2935
parentd85d08e14f9ed2b39e0d4d2cdc772e26f02fef78 (diff)
downloadsubsurface-4b9b19cec6e975d70511a4994d0634855234ae59.tar.gz
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>
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 3efa702d0..60751fcfd 100644
--- a/planner.c
+++ b/planner.c
@@ -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);