alloca: fix buf interaction