From d0916ced78738053da54aeb65a48b6d7d2483107 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 18 Jul 2014 08:35:39 +0200 Subject: Initialize prompt buffers in the configuration menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Lukas Fleischer --- src/notify.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/notify.c') 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: -- cgit v1.2.3-54-g00ecf