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:
committed by
Martin Baulig
parent
23c7449898
commit
7752a312e9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user