dtinfo subtree dtinfo
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / UAS / DtSR / TextRun.C
index a2fba4154ca0034cb73eff10c7dfedc1a72919b4..e4e6e048f46f79c0ae502756bea97e5ffeb148a6 100644 (file)
@@ -28,7 +28,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <strstream.h>
+#include <sstream>
+using namespace std;
 
 main(int argc, char** argv)
 {
@@ -49,13 +50,13 @@ main(int argc, char** argv)
        return 1;
     }
 
-    ostrstream text;
+    ostringstream text;
 
     char ch;
     while (cin.get(ch)) text << ch;
 
-    char* buf = text.str();
-    *(buf + text.pcount()) = '\0';
+    char* buf = (char *)text.str().c_str();
+    *(buf + text.str().size()) = '\0';
     char* p = buf;
 
     if (buf == NULL || *buf == '\0') {