commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/87: Do not include the terminating zero in /proc/slabinfo


From: Samuel Thibault
Subject: [hurd] 01/87: Do not include the terminating zero in /proc/slabinfo
Date: Sun, 09 Nov 2014 11:04:58 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 65ebcc40e55dfb3ee776383891f8a6b15b176d27
Author: Justus Winter <address@hidden>
Date:   Wed May 28 14:37:58 2014 +0200

    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 (),

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]