diff src/oct-procbuf.cc @ 6725:dd930ff7f754

[project @ 2007-06-14 18:23:02 by jwe]
author jwe
date Thu, 14 Jun 2007 18:23:02 +0000
parents 70158d7ab8ef
children 6b7ba4a31876
line wrap: on
line diff
--- a/src/oct-procbuf.cc
+++ b/src/oct-procbuf.cc
@@ -74,7 +74,7 @@
   if (is_open ()) 
     return 0;
 
-  f = ::W32POPEN (command, (mode & std::ios::in) ? "r" : "w");
+  f = ::W32POPEN (command, (mode & std::ios::in) ? "rb" : "wb");
 
   if (! f)
     return 0;