[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field
Richard
legalize at xmission.com
Tue Jul 23 11:36:03 PDT 2013
In article <CACs=ty+7zKZU6Ad4jZ5J5Rb0qoMa-bNtO0f+xK_8SYfy3RyFbg at mail.gmail.com>,
Reid Kleckner <rnk at google.com> writes:
> 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.
Am I the only one who scratches my head and says:
sprintf?
memcpy?
Why are we using error-prone C APIs in C++ code?
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
More information about the llvm-dev
mailing list