**** Merged from LIBGTOP_STABLE_1_0 ****

2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* procargs.c (glibtop_get_proc_args_s): Set correct `buf->size' and
	`buf->flags' fields when `max_length' was given. Fixes #5183.
This commit is contained in:
Martin Baulig
2000-01-21 23:28:35 +00:00
committed by Martin Baulig
parent bc86c09ede
commit 1b8d205eb0
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2000-01-22 Martin Baulig <martin@home-of-linux.org>
* procargs.c (glibtop_get_proc_args_s): Set correct `buf->size' and
`buf->flags' fields when `max_length' was given. Fixes #5183.
1999-11-28 Martin Baulig <martin@home-of-linux.org>
* procstate.c (glibtop_get_procstate_s): Stat "/proc/<pid>" instead

View File

@@ -65,6 +65,11 @@ glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
return NULL;
}
*(retval+len) = 0;
buf->size = len;
buf->flags = _glibtop_sysdeps_proc_args;
return retval;
}