ps: move big structures off stack
authorAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:11 +0000 (00:10 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:10:11 +0000 (00:10 +0000)
Applications/util/ps.c

index 9ebcb51..b479ec9 100644 (file)
@@ -34,7 +34,7 @@ int do_ps(void)
     struct p_tab_buffer *ppbuf;
     struct p_tab *pp;
     static struct p_tab_buffer ptab[PTABSIZE];
-    int ppid_slot[PTABSIZE];
+    static int ppid_slot[PTABSIZE];
     static char name[10], uname[20];
 
     uid = getuid();