Jakub's fix to cons.saver

This commit is contained in:
Miguel de Icaza 1998-10-01 16:42:33 +00:00
parent f149bf7733
commit 7ca312db48
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ char *detect_console (void)
!isdigit(tty_name[len - 1]))
return "Doesn't look like console";
sprintf (vcs_name, "/dev/vcsa%c", tty_name [len-1]);
sprintf (vcs_name, "/dev/vcsa%s", tty_name + xlen - 1);
vcs_fd = check_file (vcs_name, 0, &msg);
console_fd = check_file (tty_name, 1, &msg);