diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2018-05-26 11:47:01 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-05-26 11:47:01 +0200 |
commit | 8abb1a93add0a2c9c08df6a28f7da2ba27cf1019 (patch) | |
tree | 6ad7949819a2d0c117c6f9438afdb47c98673769 | |
parent | 7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5 (diff) | |
download | calcurse-8abb1a93add0a2c9c08df6a28f7da2ba27cf1019.tar.gz calcurse-8abb1a93add0a2c9c08df6a28f7da2ba27cf1019.zip |
Properly NUL-terminate the day heading after editing
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/custom.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |