ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit e929c04b806a610fc822a7b115ad78ab220d68de
parent d42524809be7adf53648d34f9d45cd03ff170793
Author: sin <sin@2f30.org>
Date:   Fri, 16 Jan 2015 15:54:15 +0000

Use TTY_NAME_MAX instead of PATH_MAX

Diffstat:
ps.c | 2+-
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;