On Mon, 27 Jun 2016 17:09:21 +0200 Andrej Kacian <andrej at kacian.sk> wrote: > If we're dealing with unknown buffer size, wouldn't it be safer to > allocate it on the heap, to prevent potential stack overflow? That makes sense. I was thinking about buffer overflow but not stack overflow. I'll push a fix.