diff --git a/planner.c b/planner.c
index b682bd5cd..25fd4908b 100644
--- a/planner.c
+++ b/planner.c
@@ -532,12 +532,12 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
translate("gettextFromC", "%s
Subsurface dive plan
based on GFlow = %d and GFhigh = %d
"),
show_disclaimer ? disclaimer : empty, diveplan->gflow, diveplan->gfhigh);
if (!plan_verbatim) {
- len += snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "
| depth | "));
+ len += snprintf(buffer + len, sizeof(buffer) - len, "%s", translate("gettextFromC", "| depth | "));
if (plan_display_runtime)
- len += snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", " runtime | "));
+ len += snprintf(buffer + len, sizeof(buffer) - len, "%s", translate("gettextFromC", " runtime | "));
if (plan_display_duration)
- len += snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", " duration | "));
- len += snprintf(buffer + len, sizeof(buffer) - len, " gas |
");
+ len += snprintf(buffer + len, sizeof(buffer) - len, "%s", translate("gettextFromC", " duration | "));
+ len += snprintf(buffer + len, sizeof(buffer) - len, "%s", translate("gettextFromC"," gas | "));
}
do {
struct gasmix gasmix, newgasmix;
@@ -619,7 +619,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
lastdepth = dp->depth;
} while ((dp = nextdp) != NULL);
len = strlen(buffer);
- snprintf(buffer + len, sizeof(buffer) - len, translate("gettextFromC", "
Gas consumption:
"));
+ snprintf(buffer + len, sizeof(buffer) - len, "%s", translate("gettextFromC", "
|---|
Gas consumption:
"));
for (gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) {
double volume;
const char *unit;