diff src/pr-output.cc @ 1728:42b4f904f1af

[project @ 1996-01-09 11:36:01 by jwe]
author jwe
date Tue, 09 Jan 1996 11:41:43 +0000
parents 4afce032330e
children a02f140ed897
line wrap: on
line diff
--- a/src/pr-output.cc	Tue Jan 09 09:18:59 1996 +0000
+++ b/src/pr-output.cc	Tue Jan 09 11:41:43 1996 +0000
@@ -29,6 +29,8 @@
 #include <cmath>
 #include <cstring>
 
+#include <string>
+
 #include <iostream.h>
 #include <strstream.h>
 
@@ -1515,7 +1517,8 @@
 
       for (int i = 0; i < nstr; i++)
 	{
-	  char *row = chm.row_as_string (i);
+	  string tstr = chm.row_as_string (i);
+	  const char *row = tstr.c_str ();
 
 	  if (pr_as_read_syntax)
 	    {