SWORD2: Fix potential allocation size mismatch. CID 1003324.