use a 1k buffer for the initial argv malloc (bug 14401)

This commit is contained in:
rim
2018-05-30 21:51:50 +02:00
committed by Landry Breuil
parent ccb9824ce2
commit bbee897079

View File

@@ -111,7 +111,7 @@ gboolean get_task_list (GArray *task_list)
g_strlcpy(t.name, p.p_comm, strlen(p.p_comm) + 1);
/* shamelessly stolen from top/machine.c */
if (!P_ZOMBIE(&p)) {
size = 128;
size = 1024;
if ((args = malloc(size)) == NULL)
errx(1,"failed to allocate memory for argv structures at %zu", size);
bzero(args, size);