print-ppp: variable 'length' is updated and the new value is never used