From f771df3a3b67543d714175c5aea1c261a12403b6 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Tue, 23 Jan 2018 12:13:26 +0100 Subject: Fixed editing. --- timetracker.c | 1 + 1 file changed, 1 insertion(+) (limited to 'timetracker.c') diff --git a/timetracker.c b/timetracker.c index b07f029..c268a9e 100644 --- a/timetracker.c +++ b/timetracker.c @@ -58,6 +58,7 @@ void edit_new() FIELD *field[2]; int ch, rows, cols; + memset(new.name, 0, strlen(new.name)); keypad(win, TRUE); field[0] = new_field(7, 48, 2, 1, 0, 0); field[1] = NULL; -- cgit v1.2.3