ref: 2f0635a1596622a0edd4db060f50a4065f26883f
parent: 9a1a927377d1df35da741283cd5edfa7f61e1c06
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon May 23 19:15:06 EDT 2011
aux/vga: pci.c dircount bug 3
--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -28,6 +28,7 @@
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);