load: Change buffer_pos to be a size_t