Replaced by g_file_get_contents.
* procargs.c: (glibtop_get_proc_args_s): Replaced by g_file_get_contents.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2004-06-13 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* procargs.c: (glibtop_get_proc_args_s): Replaced by g_file_get_contents.
|
||||
|
||||
2004-06-13 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* glibtop_server.h:
|
||||
|
@@ -59,9 +59,9 @@ glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(max_len) {
|
||||
args = g_realloc(args, max_len);
|
||||
args[max_len-1] = '\0';
|
||||
if(max_len && max_len < length) {
|
||||
args = g_realloc(args, max_len+1);
|
||||
args[max_len] = '\0';
|
||||
length = max_len;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user