From: Michael Brown Date: Tue, 21 Mar 2017 13:30:05 +0000 (+0200) Subject: [mucurses] Attempt to fix use of uninitialised buffer with strcat() X-Git-Tag: v1.20.1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=501fa53b2587642f1459fa79db71359e8eac75dc;p=thirdparty%2Fipxe.git [mucurses] Attempt to fix use of uninitialised buffer with strcat() Signed-off-by: Michael Brown --- diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c index da35c5675..b900c068a 100644 --- a/src/hci/mucurses/slk.c +++ b/src/hci/mucurses/slk.c @@ -81,6 +81,7 @@ static void _print_label ( struct _softlabel sl ) { assert ( slks->max_label_len <= SLK_MAX_LABEL_LEN ); space_ch = ' '; + memset ( str, 0, sizeof ( str ) ); // protect against gaps in the soft label keys array if ( ! sl.label[0] ) {