Fix bad buffer dimensioning when reading rsurf input

It led to overflow when ssps were given for depth below zmax.