"console=")) != NULL)
{
char *end;
+ size_t console_length;
remaining_command_line = console_string;
if (end != NULL)
*end = '\0';
+ console_length = strlen (console);
+
if (strcmp (console, "tty0") == 0 || strcmp (console, "/dev/tty0") == 0 ||
strcmp (console, "tty") == 0 || strcmp (console, "/dev/tty") == 0)
{
ply_trace ("serial console %s found!", console);
ply_hashtable_insert (consoles, console, NULL);
- remaining_command_line += strlen (console);
+ remaining_command_line += console_length;
}
free (state->kernel_console_tty);