Use retval from sprintf while walking buffers