From c63a5a4af0dcb12c2a7b7932f204b595a30629b4 Mon Sep 17 00:00:00 2001 From: Jan Rybar Date: Thu, 4 Aug 2016 11:25:19 +0200 Subject: [PATCH] Fixing is_disk() which mistakes devices with name longer than 20 chars for partitions. Associated with previous vmstat -d enhancement commit. --- proc/sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/sysinfo.c b/proc/sysinfo.c index be43bc30..25e35188 100644 --- a/proc/sysinfo.c +++ b/proc/sysinfo.c @@ -938,7 +938,7 @@ unsigned int getpartitions_num(struct disk_stat *disks, int ndisks){ ///////////////////////////////////////////////////////////////////////////// static int is_disk(char *dev) { - char syspath[32]; + char syspath[64]; char *slash; while ((slash = strchr(dev, '/')))