typefind: Only advance offset by the number of bytes we actually read

There might be a short read at EOS.
1 file changed