IB/core: Fix array length allocation