caps: Use correct size for caps allocation