Fixed some calls to xcalloc where the quantity and size parameters had been transposed.