main: corrected error in read_consoles_from_file

This commit is contained in:
Kevin Murphy 2012-04-27 01:11:14 -04:00 committed by Ray Strode
parent 87b27bd1a8
commit c20cd45346

View file

@ -1935,7 +1935,7 @@ add_consoles_from_file (state_t *state,
if (strcmp (console, "tty0") != 0)
state->should_force_details = true;
asprintf (&console_device, "/dev/%s", contents);
asprintf (&console_device, "/dev/%s", console);
free (console);