Used g_memdup.
* proclist.c: (glibtop_get_proclist_s): Used g_memdup.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2004-06-06 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* proclist.c: (glibtop_get_proclist_s): Used g_memdup.
|
||||
|
||||
2004-05-25 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* sem_limits.c:
|
||||
|
@@ -77,9 +77,7 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
|
||||
|
||||
buf->total = buf->number * sizeof (unsigned);
|
||||
|
||||
pids_chain = g_malloc (buf->total);
|
||||
|
||||
memcpy (pids_chain, tbl.proclist.pids, buf->total);
|
||||
pids_chain = g_memdup(tbl.proclist.pids, buf->total);
|
||||
|
||||
return pids_chain;
|
||||
}
|
||||
|
Reference in New Issue
Block a user