commit a5c30abf8f1ac7a51a733544249b70b7ce90f1e2
parent d76319f838dfb42c13c099012e72ca11d37d7178
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 15:54:15 +0000
Use TTY_NAME_MAX instead of PATH_MAX
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ps.c b/ps.c
@@ -70,7 +70,7 @@ psout(struct procstat *ps)
struct procstatus pstatus;
char cmdline[BUFSIZ], *cmd;
char buf[BUFSIZ];
- char ttystr[PATH_MAX], *myttystr;
+ char ttystr[TTY_NAME_MAX], *myttystr;
int tty_maj, tty_min;
uid_t myeuid;
unsigned sutime;