From 8abb1a93add0a2c9c08df6a28f7da2ba27cf1019 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Sat, 26 May 2018 11:47:01 +0200
Subject: Properly NUL-terminate the day heading after editing

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/custom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/custom.c b/src/custom.c
index 6516afb..246af1d 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -789,7 +789,7 @@ static void general_option_edit(int i)
 		buf[BUFSIZ - 1] = '\0';
 		if (updatestring(win[STA].p, &buf, 0, 1) == 0) {
 			strncpy(conf.day_heading, buf, BUFSIZ);
-			conf.output_datefmt[BUFSIZ - 1] = '\0';
+			conf.day_heading[BUFSIZ - 1] = '\0';
 		}
 		break;
 	}
-- 
cgit v1.2.3-70-g09d2