fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean
2004-03-09 Bastien Nocera <hadess@hadess.net> * fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean <bnet@ifrance.com>)
This commit is contained in:
committed by
Bastien Nocera
parent
58c15ceeda
commit
a795ff4847
@@ -93,7 +93,7 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
|
||||
size += strlen (*ptr)+1;
|
||||
|
||||
size += 2;
|
||||
retval = g_malloc (server, size);
|
||||
retval = g_malloc (size);
|
||||
memset (retval, 0, size);
|
||||
|
||||
for (ptr = args; *ptr; ptr++) {
|
||||
|
||||
Reference in New Issue
Block a user