Regardless the _static_ flag should be used.

I still think the buffer should be malloc'd for readability and consistency with the rest of the code rather than requiring some non-const allocation that only some versions of gcc will support.  This makes our code less portable.