> Here, we enter the loop with `i = formatlen'. After the dot (`.') is matched,
> `i' is increased by one and effectively "overflows".

This should actually be:

Here, after the dot (`.') is matched, the same thing as in the previous case 
happens.
`i' is matched three times instead of the expected two and thus effectively 
"overflows".

--
Best Regards,
Tom Schwindl

Reply via email to