summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/openbsd_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c
index b83c35c..e954144 100644
--- a/src/openbsd_pci.c
+++ b/src/openbsd_pci.c
@@ -135,8 +135,8 @@ pci_device_openbsd_read_rom(struct pci_device *device, void *buffer)
if (bios == MAP_FAILED)
return errno;
- memcpy(buffer, bios, device->rom_size);
- munmap(bios, device->rom_size);
+ memcpy(buffer, bios, rom_size);
+ munmap(bios, rom_size);
if (pci_rom) {
/* Restore PCI config space */