From 5e762fd51fa59cad1e0107a60023a61a904e0174 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 5 Sep 2015 03:23:56 -0700 Subject: [PATCH] Fix compilation error on Win32 platforms. --- src/rpcblockchain.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 83ca8fd..05bcbff 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -282,7 +282,7 @@ bool ExportBlock(const string& strBlockHash, const CDataStream& ssBlock) pathDest /= strBlockHash; try { - boost::iostreams::stream_buffer buf(pathDest.c_str()); + boost::iostreams::stream_buffer buf(pathDest.string()); ostream exportStream(&buf); exportStream << HexStr(ssBlock.begin(), ssBlock.end()); exportStream.flush(); -- 1.7.1