Projects
Eulaceura:Factory
procinfo
_service:obs_scm:procinfo-18-maxdev.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:procinfo-18-maxdev.patch of Package procinfo
--- 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;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2