summaryrefslogtreecommitdiff
path: root/src/wins.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/wins.c
parentfe58fe674d5505bb369b6e3864d56989cdcb74f7 (diff)
downloadcalcurse-8fdd1510c68644184c3df9ba002092a41364b482.zip
Automatic periodic saves implemented
Diffstat (limited to 'src/wins.c')
-rwxr-xr-xsrc/wins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wins.c b/src/wins.c
index 8dde1f7..36655a5 100755
--- a/src/wins.c
+++ b/src/wins.c
@@ -1,4 +1,4 @@
-/* $calcurse: wins.c,v 1.20 2008/12/28 13:13:59 culot Exp $ */
+/* $calcurse: wins.c,v 1.21 2008/12/28 19:41:45 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -453,7 +453,7 @@ wins_launch_external (const char *file, const char *cmd)
/* Beware of space between cmd and file. */
len = strlen (file) + strlen (cmd) + 2;
- p = (char *) mem_malloc (sizeof (char) * len);
+ p = (char *) mem_calloc (len, sizeof (char));
if (snprintf (p, len, "%s %s", cmd, file) == -1)
{
mem_free (p);