Use TTY_NAME_MAX instead of PATH_MAX
This commit is contained in:
parent
d76319f838
commit
a5c30abf8f
2
ps.c
2
ps.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user