[v3] Fix stringbuf handling of NUL characters

Carlo Wood carlo@alinoe.com
Fri Jul 13 17:49:00 GMT 2001


On Fri, Jul 13, 2001 at 04:24:23PM -0400, Phil Edwards wrote:
> But that's not c_str()'s fault.  Both c_str() and data() simply return a
> pointer to the character string.  A second NUL character (which will never
> be seen) won't make any difference.
> 
> It's just occurred to me that we may be talking about different things
> anyhow.  :-)

It irrelevant for the patch anyway, you should use data() if only because
it is faster.

-- 
Carlo Wood <carlo@alinoe.com>



More information about the Libstdc++ mailing list