[hackers] [ubase] Use TTY_NAME_MAX instead of PATH_MAX || sin
commit a5c30abf8f1ac7a51a733544249b70b7ce90f1e2
Author: sin <sin_AT_2f30.org>
Date: Fri Jan 16 15:54:15 2015 +0000
Use TTY_NAME_MAX instead of PATH_MAX
diff --git a/ps.c b/ps.c
index 14f95c8..d179fb9 100644
--- a/ps.c
+++ b/ps.c
_AT_@ -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;
Received on Fri Jan 16 2015 - 16:55:15 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 16 2015 - 17:00:12 CET