summaryrefslogtreecommitdiffstats
path: root/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pci.c b/pci.c
index 1609fe7..68c07af 100644
--- a/pci.c
+++ b/pci.c
@@ -98,6 +98,8 @@ extern struct pciusb_entries pci_probe(void) {
}
}
+
+ /* shrink to real size */
r.entries = realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);
pci_cleanup(pacc);