From 1b744c7639fe1c9cbaa22ae16b60dc48dc1e8944 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 28 Mar 2017 15:04:35 +0200 Subject: Always show notes when replanning ... as per popular request. Plus adding const keyword to constant strings. Signed-off-by: Robert C. Helling --- core/planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index 9791523d2..614634f20 100644 --- a/core/planner.c +++ b/core/planner.c @@ -538,7 +538,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool const unsigned int sz_temp = 100000; char *buffer = (char *)malloc(sz_buffer); char *temp = (char *)malloc(sz_temp); - char *deco, *segmentsymbol; + const char *deco, *segmentsymbol; static char buf[1000]; int len, lastdepth = 0, lasttime = 0, lastsetpoint = -1, newdepth = 0, lastprintdepth = 0, lastprintsetpoint = -1; struct gasmix lastprintgasmix = {{ -1 }, { -1 }}; -- cgit v1.2.3-70-g09d2