Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / gameengine / VideoTexture / Exception.cpp
index 35d335b..8704d49 100644 (file)
@@ -21,7 +21,7 @@ http://www.gnu.org/copyleft/lesser.txt.
 */
 
 
-#include <sstream>
+#include <strstream>
 #include <fstream>
 
 #include <PyObjectPlus.h>
@@ -170,11 +170,11 @@ void Exception::setXptDesc (void)
                // length of result code
                const size_t rsltSize = 11;
                // delimit description
-               //const char delimRslt[] = ": ";
+               const char delimRslt[] = ": ";
                // set text of description
                char rsltTxt[rsltSize];
-               std::ostringstream os;
-               os << std::hex << m_hRslt << ": " << '\0';
+               std::ostrstream os(rsltTxt, rsltSize);
+               os << std::hex << m_hRslt << delimRslt << '\0';
                // copy result to description
                m_desc.insert(0, rsltTxt);
                // copy exception description to last exception string