david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[mucurses] Attempt to fix use of uninitialised buffer with strcat()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-21 15:30:05 +02:00
parent f17cf0ecd0
commit 501fa53b25
1 changed files with 1 additions and 0 deletions

View File

@ -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] ) {