Ignore spurious '\0' first character read on a serial console.
This allows me to "boot -a" over a serial console. Tested on several machines.
This commit is contained in:
parent
a4d3c74487
commit
90ee1f3a04
@ -56,6 +56,8 @@ gets(char *cp, size_t size, int visible)
|
||||
lp--;
|
||||
}
|
||||
continue;
|
||||
case '\0':
|
||||
continue;
|
||||
default:
|
||||
if (lp < end) {
|
||||
if (visible)
|
||||
|
Loading…
Reference in New Issue
Block a user