diff options
author | Michael Brown | 2017-03-21 14:30:05 +0100 |
---|---|---|
committer | Michael Brown | 2017-03-21 14:30:05 +0100 |
commit | 501fa53b2587642f1459fa79db71359e8eac75dc (patch) | |
tree | 9041bf59436af2a83839f8a3292ec19d4619a3d0 | |
parent | [http] Add missing check for memory allocation failure (diff) | |
download | ipxe-501fa53b2587642f1459fa79db71359e8eac75dc.tar.gz ipxe-501fa53b2587642f1459fa79db71359e8eac75dc.tar.xz ipxe-501fa53b2587642f1459fa79db71359e8eac75dc.zip |
[mucurses] Attempt to fix use of uninitialised buffer with strcat()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/hci/mucurses/slk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c index da35c567..b900c068 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] ) { |