Use TTY_NAME_MAX instead of PATH_MAX

This commit is contained in:
sin 2015-01-16 15:54:15 +00:00
parent d76319f838
commit a5c30abf8f

2
ps.c
View File

@ -70,7 +70,7 @@ psout(struct procstat *ps)
struct procstatus pstatus; struct procstatus pstatus;
char cmdline[BUFSIZ], *cmd; char cmdline[BUFSIZ], *cmd;
char buf[BUFSIZ]; char buf[BUFSIZ];
char ttystr[PATH_MAX], *myttystr; char ttystr[TTY_NAME_MAX], *myttystr;
int tty_maj, tty_min; int tty_maj, tty_min;
uid_t myeuid; uid_t myeuid;
unsigned sutime; unsigned sutime;