summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 108c5bd)
raw | patch | inline | side by side (parent: 108c5bd)
author | hume-github <hume-ml+github@bofh.ca> | |
Thu, 27 Sep 2012 13:43:09 +0000 (10:43 -0300) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 2 Oct 2012 07:32:47 +0000 (09:32 +0200) |
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>
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>
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index dcdaaf291c92088aae58b5cb0d7cef8104ae8509..c77859d9e7d9f6953abe3fb87c3e16aebdd44357 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
{
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 ();