changeset 4135:e865976c2084

[project @ 2002-10-30 01:32:43 by jwe]
author jwe
date Wed, 30 Oct 2002 01:32:43 +0000
parents 76d25b5e6223
children c06ee5520e4f
files src/ChangeLog src/utils.cc
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Oct 30 01:03:27 2002 +0000
+++ b/src/ChangeLog	Wed Oct 30 01:32:43 2002 +0000
@@ -2,6 +2,9 @@
 
 	* version.h (OCTAVE_VERSION): Now 2.1.38.
 
+	* utils.cc (octave_vformat): Get return value from
+	streambuf::vform.
+
 	* DLD-FUNCTIONS/fsolve.cc (Ffsolve): Always return solution.
 	Don't barf on nargout == 3.
 
--- a/src/utils.cc	Wed Oct 30 01:03:27 2002 +0000
+++ b/src/utils.cc	Wed Oct 30 01:32:43 2002 +0000
@@ -717,7 +717,10 @@
 
 #if defined (__GNUG__) && !CXX_ISO_COMPLIANT_LIBRARY
 
-  os.vform (fmt, args);
+  std::streambuf *sb = os.rdbuf ();
+
+  if (sb)
+    retval = sb->vform (fmt, args);
 
 #else