plymouth/serial-again.patch

23 lines
646 B
Diff
Raw Normal View History

diff --git a/src/main.c b/src/main.c
index 71508c4..ca5f21c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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';
2008-09-08 13:51:47 +00:00
+ remaining_command_line += end - state->console;
+ }
}
}