summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-06-24 22:19:26 (GMT)
committerBrad King <brad.king@kitware.com>2002-06-24 22:19:26 (GMT)
commiteb5b8e3d248b91eda948d93e4bc8e83e341d1191 (patch)
tree377f55766517c3439b0207853047757d440c2488
parentd1879a77e89c6f7bfccd5675f513bca9ac9ec7ff (diff)
downloadCMake-eb5b8e3d248b91eda948d93e4bc8e83e341d1191.zip
CMake-eb5b8e3d248b91eda948d93e4bc8e83e341d1191.tar.gz
CMake-eb5b8e3d248b91eda948d93e4bc8e83e341d1191.tar.bz2
BUG: Attempt to fix ostrstream::str() wrapper for broken platforms.
-rw-r--r--Source/cmStandardIncludes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index fb1bdb6..802855c 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -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&);