stack (local variable) overflows the thread stack and crashes the
process in weird and interesting ways.
"int i" is a useless variable and breaks the build with -Werror.
Signed-off-by: Florian Forster <octo@collectd.org>
{
char filename[64];
char f_psinfo[64], f_usage[64];
- int i;
char *buffer;
-
pstatus_t *myStatus;
psinfo_t *myInfo;
prusage_t *myUsage;
procstat_t *ps_ptr;
char state;
- char cmdline[ARG_MAX];
+ char cmdline[PRARGSZ];
ps_list_reset ();