Fix buffer_size comparison.