Typos
Don't run past the end of buffer!

Fixes "git diff" corruption.
0.4.0