aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rwxr-xr-xsrc/utils.c6
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");