fix buffer overrun. message is only big enough to hold 80 chars. oops!
This commit is contained in:
parent
47e0462368
commit
d6297305cf
|
@ -573,7 +573,9 @@ void boot_screen() {
|
|||
}
|
||||
}
|
||||
|
||||
sprintf(message, "\nPress \e[93mSPACE\e[37m to boot from default source.\nPress \e[93m<=\e[37m to rescan for boot sources.\n");
|
||||
sprintf(message, "\nPress \e[93mSPACE\e[37m to boot from default source.\n");
|
||||
chan_write(0, (uint8_t *)message, strlen(message));
|
||||
sprintf(message, "Press \e[93m<=\e[37m to rescan for boot sources.\n");
|
||||
chan_write(0, (uint8_t *)message, strlen(message));
|
||||
|
||||
// Let the user select a boot source
|
||||
|
|
Loading…
Reference in a new issue