Displaying 2 results from an estimated 2 matches for "bd7701ac".
2013 Jul 23
0
[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field
...me snprintf always null terminates.
This may be Windows-specific behavior that you shouldn't rely on. If
that's the case, ignore my suggestion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130723/bd7701ac/attachment.html>
2013 Jul 23
4
[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field
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).
-Nico