ubase

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

commit 41d82175fcc897dd939760a14cb2190820488711
parent 42b640fa21f7afaf77840e1b34be749e27eeb4ae
Author: sin <sin@2f30.org>
Date:   Sat, 17 Aug 2013 17:20:00 +0100

Do not use a magic number for the size of the array

Diffstat:
Mps.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ps.c b/ps.c @@ -66,12 +66,12 @@ psout(struct procstat *ps) { struct procstatus pstatus; char cmdline[BUFSIZ], *cmd; - char stimestr[6]; char *ttystr, *myttystr; int tty_maj, tty_min; uid_t myeuid; unsigned sutime; time_t start; + char stimestr[sizeof("%H:%M")]; struct sysinfo info; struct passwd *pw;