Set correct buf->size' and buf->flags' fields when `max_length' was

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:27:08 +00:00
committed by Martin Baulig
parent 23c7449898
commit 7752a312e9
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

@@ -64,7 +64,12 @@ glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
glibtop_free_r (server, retval);
return NULL;
}
*(retval+len) = 0;
buf->size = len;
buf->flags = _glibtop_sysdeps_proc_args;
return retval;
}