summaryrefslogtreecommitdiff
path: root/hw/alpha/dp264.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/alpha/dp264.c')
-rw-r--r--hw/alpha/dp264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/alpha/dp264.c b/hw/alpha/dp264.c
index b178a03604..84a55e41a2 100644
--- a/hw/alpha/dp264.c
+++ b/hw/alpha/dp264.c
@@ -97,7 +97,7 @@ static void clipper_init(MachineState *machine)
/* IDE disk setup. */
{
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
- ide_drive_get(hd, MAX_IDE_BUS);
+ ide_drive_get(hd, ARRAY_SIZE(hd));
pci_cmd646_ide_init(pci_bus, hd, 0);
}