... "to preserve the original length of x". That is the point of do.pad.