Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mucurses] Attempt to fix use of uninitialised buffer with strcat()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 21, 2017
1 parent f17cf0e commit 501fa53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hci/mucurses/slk.c
Expand Up @@ -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] ) {
Expand Down

0 comments on commit 501fa53

Please sign in to comment.