Replaced by g_file_get_contents.

* procargs.c: (glibtop_get_proc_args_s): Replaced by g_file_get_contents.
This commit is contained in:
Benoît Dejean
2004-06-13 09:55:38 +00:00
parent 7eeae24a4a
commit bb4397aec8
2 changed files with 7 additions and 3 deletions

View File

@@ -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:

View File

@@ -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;
}