diff options
author | Frederic Culot <calcurse@culot.org> | 2008-12-28 19:41:45 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-12-28 19:41:45 +0000 |
commit | 8fdd1510c68644184c3df9ba002092a41364b482 (patch) | |
tree | 2291528c007f81a639d0bc3fdc045a6efcbeba06 /src/utils.c | |
parent | fe58fe674d5505bb369b6e3864d56989cdcb74f7 (diff) | |
download | calcurse-8fdd1510c68644184c3df9ba002092a41364b482.zip |
Automatic periodic saves implemented
Diffstat (limited to 'src/utils.c')
-rwxr-xr-x | src/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
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"); |