[Bug 91] String literals not always properly zero-terminated

via D.gnu d.gnu at puremagic.com
Sun Oct 26 13:05:20 PDT 2014


Marc Schütz <schuetzm at gmx.net> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |NEW
                 CC|                            |schuetzm at gmx.net
         Resolution|INVALID                     |---

--- Comment #9 from Marc Schütz <schuetzm at gmx.net> ---
Yes, see here:

"String literals have a 0 appended to them, which makes them easy to pass to C
or C++ functions expecting a const char* string."

Specifically, it does _not_ say that the zero is only there when the literal
appears in a `char*` context.

You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20141026/6692c30c/attachment.html>

More information about the D.gnu mailing list