(make_gap_larger): Make sure buffer size does not overflow range of int.