Simplify buffer-growing algorithm. Just double it each time.