aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:35:39 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:38:15 +0200
commitd0916ced78738053da54aeb65a48b6d7d2483107 (patch)
treef2949041fff47255bdf79f24d3739d1b8511999d /src/notify.c
parent80a7267f8c03a1c307b4f6b9bee1a906f53a0a01 (diff)
downloadcalcurse-d0916ced78738053da54aeb65a48b6d7d2483107.tar.gz
calcurse-d0916ced78738053da54aeb65a48b6d7d2483107.zip
Initialize prompt buffers in the configuration menus
malloc() does not make sure that the buffer is initialized to contain all zeros. Initialize the buffer with the empty string. Reported-by: HÃ¥kan Jerning <jerning@home.se> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/notify.c b/src/notify.c
index b8ba244..b29e07d 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -693,6 +693,7 @@ static void config_option_edit(int i)
const char *cmd_str = _("Enter the notification command ");
buf = mem_malloc(BUFSIZ);
+ buf[0] = '\0';
switch (i) {
case 0: