Hi diehardii,


I not sure string::str() is guarunteed to return a NULL terminated string. Try using string::c_str() instead. It does return a NULL terminated string.

See http://www.sgi.com/tech/stl/basic_string.html.

Jeff