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

This commit is contained in:
sin 2013-08-17 17:20:00 +01:00
parent 42b640fa21
commit 41d82175fc

2
ps.c
View File

@ -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;