Bug in strstream ?

Alexandre Oliva aoliva@redhat.com
Tue Apr 10 21:10:00 GMT 2001


On Apr 10, 2001, Sven Eschenberg <eschenb@cs.uni-frankfurt.de> wrote:

>   istr=dummy.str();
>   cout << dummy.str() << endl;

Note that the result of str() is not guaranteed to be NULL-terminated,
unless you explicitly write a std::eos to the stream.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-bugs mailing list