use a static buffer instead of a dynamic one

we are going to limit the output anyway ... and using a static buffer
suppresses valgrind warnings when the program exits
(since we have no clean way to release that buffer at exit
 and there is no point in doing that anyway)