[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field

Nico Rieck nico.rieck at gmail.com
Tue Jul 23 09:48:10 PDT 2013

On 23.07.2013 18:43, Reid Kleckner wrote:
> Is there a problem if the string is not null terminated?  If not, you can
> snprintf it right into place instead of doing sprintf+mempcy.

snprintf always null-terminates (and truncates if there's not enough space).


More information about the llvm-dev mailing list