bug

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Feb 29 13:42:00 GMT 2000


> and produces the wrong output: 

Thanks for your bug report. This is not a bug in gcc, but in your
code. The data() function does not return a zero-terminated string;
you need to use the c_str() function for that. If you replace all
data() calls with c_str() your code works fine. Please read a C++ book
for details.

Regards,
Martin



More information about the Gcc-bugs mailing list