From 8fdd1510c68644184c3df9ba002092a41364b482 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 28 Dec 2008 19:41:45 +0000 Subject: Automatic periodic saves implemented --- src/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 23cd32d..cee945f 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,4 @@ -/* $calcurse: utils.c,v 1.62 2008/12/28 13:13:59 culot Exp $ */ +/* $calcurse: utils.c,v 1.63 2008/12/28 19:41:45 culot Exp $ */ /* * Calcurse - text-based organizer @@ -40,6 +40,7 @@ #include "wins.h" #include "custom.h" #include "keys.h" +#include "io.h" #include "recur.h" #include "apoint.h" #include "todo.h" @@ -68,6 +69,7 @@ exit_calcurse (int status) ui_mode = UI_CMDLINE; } calendar_stop_date_thread (); + io_stop_psave_thread (); vars_free (); notify_free_vars (); notify_free_bar (); @@ -536,7 +538,7 @@ date_sec2date_str (long sec, char *datefmt) time_t t; char *datestr; - datestr = (char *) mem_malloc (sizeof (char) * BUFSIZ); + datestr = (char *) mem_calloc (BUFSIZ, sizeof (char)); if (sec == 0) (void)snprintf (datestr, BUFSIZ, "0"); -- cgit v1.2.3-54-g00ecf