int n;
if (scan_mask == TOP_MASK) {
n = ntop;
- top = xrealloc_vector(top, 2, ntop++);
+ top = xrealloc_vector(top, 6, ntop++);
top[n].pid = p->pid;
top[n].ppid = p->ppid;
top[n].vsz = p->vsz;
continue; /* kernel threads are ignored */
n = ntop;
/* No bug here - top and topmem are the same */
- top = xrealloc_vector(topmem, 2, ntop++);
+ top = xrealloc_vector(topmem, 6, ntop++);
strcpy(topmem[n].comm, p->comm);
topmem[n].pid = p->pid;
topmem[n].vsz = p->mapped_rw + p->mapped_ro;