BUG: Attempt to fix ostrstream::str() wrapper for broken platforms.

This commit is contained in:
Brad King 2002-06-24 18:19:26 -04:00
parent d1879a77e8
commit eb5b8e3d24
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ public:
{
cmStrStreamCleanup cleanup(*this);
cmStrStreamCleanup::IgnoreUnusedVariable(cleanup);
const char* ptr = this->Superclass::str();
return std::string(ptr, ptr+this->pcount());
int pcount = this->pcount();
return std::string(this->Superclass::str(), pcount);
}
private:
cmStringStream(const cmStringStream&);