From 65ebcc40e55dfb3ee776383891f8a6b15b176d27 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 28 May 2014 14:37:58 +0200 Subject: Do not include the terminating zero in /proc/slabinfo * rootdir.c (rootdir_gc_slabinfo): Do not zero-terminate the generated content. --- rootdir.c | 1 - 1 file changed, 1 deletion(-) 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 (), -- cgit v1.2.3