What happens the last time through the loop, when *pos == len?