From: Ray Strode Date: Wed, 10 Sep 2008 14:46:33 +0000 (-0400) Subject: Actually fix serial console loop X-Git-Tag: 0.6.0~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a284953e428375b630cd963cb1a100409ca26701;p=thirdparty%2Fplymouth.git Actually fix serial console loop --- diff --git a/src/main.c b/src/main.c index 71508c4a..ca5f21cc 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'; + remaining_command_line += end - console; + } } }