Simplify buffer resizing. Derp. (thanks dskiba)