From 2f0635a1596622a0edd4db060f50a4065f26883f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 23 May 2011 23:15:06 +0000 Subject: aux/vga: pci.c dircount bug 3 --- sys/src/cmd/aux/vga/pci.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3