summaryrefslogtreecommitdiff
path: root/src/daemon/slave.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-12-09 17:48:35 +0000
committerMartin Baulig <martin@src.gnome.org>1998-12-09 17:48:35 +0000
commit9e41d36684e8547f82118a256c98039ce5568f16 (patch)
tree85db583a90c57e5803bc26def68fe443da4bdd81 /src/daemon/slave.c
parente140f93bf594e14eb55e5d516a6bc57c4c9b7453 (diff)
downloadlibgtop-9e41d36684e8547f82118a256c98039ce5568f16.tar.gz
Small fix.
Diffstat (limited to 'src/daemon/slave.c')
-rw-r--r--src/daemon/slave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 2ed009b5..6681eaf9 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -88,7 +88,8 @@ handle_slave_connection (int input, int output)
&resp->u.data.proc_args,
pid, max_len);
do_output (output, resp, _offset_data (proc_args),
- resp->u.data.proc_args.size, ptr);
+ ptr ? resp->u.data.proc_args.size+1 : 0,
+ ptr);
glibtop_free_r (server, ptr);
break;
#endif