mirror of git://git.suckless.org/sbase
Do not use a magic number for the size of the array
This commit is contained in:
parent
42b640fa21
commit
41d82175fc
2
ps.c
2
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue