--- procinfo-18/procinfo.h.maxdev 2004-12-16 18:02:26.000000000 +0100 +++ procinfo-18/procinfo.h 2004-12-17 11:18:11.239523416 +0100 @@ -69,10 +69,10 @@ #define CDRV 0 #define BDRV 1 #ifndef MAX_CHRDEV -#define MAX_CHRDEV 32 +#define MAX_CHRDEV 512 #endif #ifndef MAX_BLKDEV -#define MAX_BLKDEV 32 +#define MAX_BLKDEV 512 #endif #define MAX_DEV MAX(MAX_CHRDEV, MAX_BLKDEV) --- procinfo-18/procinfo.c.maxdev 2004-12-17 11:19:52.421141472 +0100 +++ procinfo-18/procinfo.c 2004-12-17 11:20:49.312492672 +0100 @@ -613,7 +613,9 @@ printf ("%s\nCharacter Devices: " "Block Devices:\n", fs ? ce : ""); - while (fgets (line, sizeof (line), devicesfp)) { + while (fgets (line, sizeof (line), devicesfp) && + count[CDRV] < MAX_DEV && + count[BDRV] < MAX_DEV) { switch (line[0]) { case 'C': which = CDRV;