Those buffers are tiny and they won't result in stack overflows because the whole thing is single threaded, it is beginner level code.