Actually fix serial console loop

This commit is contained in:
Ray Strode 2008-09-10 10:46:33 -04:00
parent ca07ac0c34
commit a284953e42

View file

@ -498,12 +498,15 @@ check_for_serial_console (state_t *state)
free (state->console);
state->console = strdup (console_key + strlen (" console="));
remaining_command_line = console_key + strlen (state->console) + strlen (" console=");
remaining_command_line = console_key + strlen (" console=");
end = strpbrk (state->console, " \n\t\v,");
if (end != NULL)
*end = '\0';
{
*end = '\0';
remaining_command_line += end - console;
}
}
}