mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[mucurses] Attempt to fix use of uninitialised buffer with strcat()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -81,6 +81,7 @@ static void _print_label ( struct _softlabel sl ) {
|
|||||||
|
|
||||||
assert ( slks->max_label_len <= SLK_MAX_LABEL_LEN );
|
assert ( slks->max_label_len <= SLK_MAX_LABEL_LEN );
|
||||||
space_ch = ' ';
|
space_ch = ' ';
|
||||||
|
memset ( str, 0, sizeof ( str ) );
|
||||||
|
|
||||||
// protect against gaps in the soft label keys array
|
// protect against gaps in the soft label keys array
|
||||||
if ( ! sl.label[0] ) {
|
if ( ! sl.label[0] ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user