http://d.puremagic.com/issues/show_bug.cgi?id=9421



--- Comment #5 from yebblies <[email protected]> 2013-02-08 11:43:19 EST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > 
> > The functions shouldn't append a '\0' if data already ends with one, and I'm
> > not sure scopedString should _ever_ modify it.  Other than that it looks 
> > right.
> 
> Then I don't understand what you mean by: "Add scopedString which checks for a
> '\0' then return a reference to the internal buffer".
> 
> It checks for a \0, and does what if it doesn't find it?

assert(0)

The idea being that getting a pointer to the internal string shouldn't change
the contents.  Maybe it would be more useful to append a zero, I don't know.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to