aux/vga: pci.c dircount bug 3
This commit is contained in:
parent
9a1a927377
commit
2f0635a159
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ pcicfginit(void)
|
|||
if(strstr(d[i].name, "ctl") == nil)
|
||||
continue;
|
||||
|
||||
strncpy(buf, d[i].name, sizeof(buf));
|
||||
bno = strtoul(buf, &s, 10);
|
||||
dno = strtoul(s+1, &s, 10);
|
||||
fno = strtoul(s+1, nil, 10);
|
||||
|
|
Loading…
Reference in a new issue