[Xfce4-commits] [apps/xfce4-taskmanager] 15/20: use a 1k buffer for the initial argv malloc (bug 14401)
noreply at xfce.org
noreply at xfce.org
Wed May 30 22:00:29 CEST 2018
This is an automated email from the git hooks/post-receive script.
l a n d r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-taskmanager.
commit bbee8970794caddd3e7231cd0b05be1a12eda5d4
Author: rim <rozhuk.im at gmail.com>
Date: Wed May 30 21:51:50 2018 +0200
use a 1k buffer for the initial argv malloc (bug 14401)
---
src/task-manager-bsd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/task-manager-bsd.c b/src/task-manager-bsd.c
index ff5236d..e5c9691 100644
--- a/src/task-manager-bsd.c
+++ b/src/task-manager-bsd.c
@@ -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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list