]> granicus.if.org Git - procps-ng/commitdiff
library: increasing meminfo()/namebuf size from 16 to 32
authorJaromir Capik <jcapik@redhat.com>
Tue, 5 Aug 2014 17:15:03 +0000 (19:15 +0200)
committerJaromir Capik <jcapik@redhat.com>
Tue, 5 Aug 2014 17:15:03 +0000 (19:15 +0200)
proc/sysinfo.c

index 9b6c2b8b509b3c41401a2c234ee46e6d69bca772..6b01397e3ff95a27a1f77dfee761e5fcef72d6c0 100644 (file)
@@ -622,7 +622,7 @@ static unsigned long kb_inactive_file;
 
 
 void meminfo(void){
-  char namebuf[16]; /* big enough to hold any row name */
+  char namebuf[32]; /* big enough to hold any row name */
   mem_table_struct findme = { namebuf, NULL};
   mem_table_struct *found;
   char *head;