fix invalid deref of one-past-end array member in mystrnchr()
fix invalid deref of one-past-end array member in mystrnchr()

while the for loop took care not to read out of bounds, the subsequent
comparison did, when we were at the end of the buffer without finding
what we were looking for.

rofl0r/jobflow,rofl0r/jobflow