summaryrefslogtreecommitdiff
path: root/src/proto/protoio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto/protoio.cc')
-rw-r--r--src/proto/protoio.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc
index ae1e2d8c2..76364794f 100644
--- a/src/proto/protoio.cc
+++ b/src/proto/protoio.cc
@@ -91,7 +91,7 @@ ProtoOutputStream::write(const Message& msg)
}
ProtoInputStream::ProtoInputStream(const string& filename) :
- fileStream(filename, ios::in | ios::binary), fileName(filename),
+ fileStream(filename.c_str(), ios::in | ios::binary), fileName(filename),
useGzip(false),
zeroCopyStream(NULL), gzipStream(NULL), codedStream(NULL)
{