mirror of https://github.com/MidnightCommander/mc
Jakub's fix to cons.saver
This commit is contained in:
parent
f149bf7733
commit
7ca312db48
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue