summaryrefslogtreecommitdiffstats
path: root/isys/devnodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'isys/devnodes.c')
-rw-r--r--isys/devnodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/devnodes.c b/isys/devnodes.c
index db61b346a..4d47a6f8c 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -166,7 +166,7 @@ int devMakeInode(char * devName, char * path) {
/* dac 960 "/rd/c0d0{p1}" */
int rc, c, d, p;
c = d = p = 0;
- rc = sscanf(devName + 4, "c%dd%dp%d", &c, &d, &p);
+ rc = sscanf(devName + 3, "c%dd%dp%d", &c, &d, &p);
type = S_IFBLK;
major = 48 + c; /* controller */
minor = d * 8; /* disk */