summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-28 14:37:58 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-28 14:37:58 +0200
commit65ebcc40e55dfb3ee776383891f8a6b15b176d27 (patch)
tree171063d2fbdecea6748ad7de72223e0e99c09641
parent122224d32894a8465a09561fc0a5220f5bb9c2c7 (diff)
Do not include the terminating zero in /proc/slabinfo
* rootdir.c (rootdir_gc_slabinfo): Do not zero-terminate the generated content.
-rw-r--r--rootdir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/rootdir.c b/rootdir.c
index 076885c..0b13119 100644
--- a/rootdir.c
+++ b/rootdir.c
@@ -529,7 +529,6 @@ rootdir_gc_slabinfo (void *hook, char **contents, ssize_t *contents_len)
mem_total, mem_total_reclaimable);
fclose (m);
- *contents_len += 1; /* For the terminating 0. */
out:
vm_deallocate (mach_task_self (),