summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/aux/vga/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c
index 3d4ab798b..230739217 100644
--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -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);