fix buffer overrun. message is only big enough to hold 80 chars. oops!

This commit is contained in:
Gered 2025-02-04 21:20:00 -05:00
parent 47e0462368
commit d6297305cf

View file

@ -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