From 41d82175fcc897dd939760a14cb2190820488711 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 17 Aug 2013 17:20:00 +0100 Subject: [PATCH] Do not use a magic number for the size of the array --- ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps.c b/ps.c index ffc2d6e..9ba9033 100644 --- 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;