Permalink
Browse files

Fixed a minor bug with tty name display.

  • Loading branch information...
1 parent 6355bc4 commit ad3e30c3a39dac1f9942f1d6d7f8af06b9f5a631 @Nadrin committed Oct 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/xlsh.c
View
2 src/xlsh.c
@@ -570,7 +570,7 @@ int xlsh_sys_getinfo(xlsh_system_t* sysinfo)
tty_name = tty_path;
}
else
- tty_name = tty_path;
+ tty_name = tty_path + 5;
strncpy(sysinfo->ttyname, tty_name, sizeof(sysinfo->ttyname));
timeval = time(NULL);

0 comments on commit ad3e30c

Please sign in to comment.