diff options
-rw-r--r-- | src/common_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common_interface.c b/src/common_interface.c index d46feab..4af772a 100644 --- a/src/common_interface.c +++ b/src/common_interface.c @@ -317,8 +317,8 @@ pci_device_map_range(struct pci_device *dev, pciaddr_t base, *addr = mappings[devp->num_mappings].memory; devp->num_mappings++; } else { - mappings = realloc(devp->mappings, - (sizeof(devp->mappings[0]) * devp->num_mappings)); + mappings = realloc(mappings, + (sizeof(mappings[0]) * devp->num_mappings)); } devp->mappings = mappings; |