Use buffer on stack