[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:55:04 PDT 2013

On 23.07.2013 18:48, Nico Rieck wrote:> 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).

Urgh, nevermind. Brain fart here.


More information about the llvm-dev mailing list