Fix bad alignment in buffer size allocation