diff options
| author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-23 23:15:06 +0000 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-23 23:15:06 +0000 |
| commit | 2f0635a1596622a0edd4db060f50a4065f26883f (patch) | |
| tree | 280bbaeac6869d1724bccee87477bf2b9a967884 | |
| parent | 9a1a927377d1df35da741283cd5edfa7f61e1c06 (diff) | |
| download | plan9front-2f0635a1596622a0edd4db060f50a4065f26883f.tar.xz | |
aux/vga: pci.c dircount bug 3
| -rw-r--r-- | sys/src/cmd/aux/vga/pci.c | 1 |
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); |
