Fix build by adding slicing syntax.

And this to `buf[start .. ]`.