Make sBuffer->end an index, not a pointer