aux/vga: pci.c dircount bug 3

This commit is contained in:
cinap_lenrek 2011-05-23 23:15:06 +00:00
parent 9a1a927377
commit 2f0635a159

View file

@ -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);