mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 14:48:01 +02:00
Actually fix serial console loop
This commit is contained in:
parent
ca07ac0c34
commit
a284953e42
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue