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:
Ruslan Ermilov 2006-01-14 20:45:02 +00:00
parent a4d3c74487
commit 90ee1f3a04

View File

@ -56,6 +56,8 @@ gets(char *cp, size_t size, int visible)
lp--;
}
continue;
case '\0':
continue;
default:
if (lp < end) {
if (visible)