summaryrefslogtreecommitdiff
path: root/src/day.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-12-28 19:41:45 +0000
committerFrederic Culot <calcurse@culot.org>2008-12-28 19:41:45 +0000
commit8fdd1510c68644184c3df9ba002092a41364b482 (patch)
tree2291528c007f81a639d0bc3fdc045a6efcbeba06 /src/day.c
parentfe58fe674d5505bb369b6e3864d56989cdcb74f7 (diff)
downloadcalcurse-8fdd1510c68644184c3df9ba002092a41364b482.zip
Automatic periodic saves implemented
Diffstat (limited to 'src/day.c')
-rwxr-xr-xsrc/day.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/day.c b/src/day.c
index 3c29c16..a3574b9 100755
--- a/src/day.c
+++ b/src/day.c
@@ -1,4 +1,4 @@
-/* $calcurse: day.c,v 1.43 2008/12/28 13:13:59 culot Exp $ */
+/* $calcurse: day.c,v 1.44 2008/12/28 19:41:45 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -621,7 +621,7 @@ update_rept (struct rpt_s **rpt, const long start, conf_t *conf)
do
{
status_mesg (msg_rpt_type, msg_rpt_ans);
- typstr = (char *) mem_malloc (sizeof (char) * SINGLECHAR);
+ typstr = (char *) mem_calloc (SINGLECHAR, sizeof (char));
(void)snprintf (typstr, SINGLECHAR, "%c", recur_def2char ((*rpt)->type));
cancel = updatestring (win[STA].p, &typstr, 0, 1);
if (cancel)