aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-04-11 15:02:24 -0700
committerPieter Wuille <[email protected]>2012-04-11 15:02:24 -0700
commitca2c1cb446188061619f52d6072b5ddf905fb90b (patch)
tree1928de3b16dfd343ce00c0f79b2fb2dd70a914ee /src/main.cpp
parentMerge pull request #1083 from laanwj/2012_04_connectionicon (diff)
parentUse filesystem::path instead of manual string tinkering (diff)
downloaddiscoin-ca2c1cb446188061619f52d6072b5ddf905fb90b.tar.xz
discoin-ca2c1cb446188061619f52d6072b5ddf905fb90b.zip
Merge pull request #1072 from sipa/boostpaths
Use filesystem::path instead of manual string tinkering
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3fe073247..b9c9db7a6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1822,7 +1822,7 @@ FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszM
{
if (nFile == -1)
return NULL;
- FILE* file = fopen(strprintf("%s/blk%04d.dat", GetDataDir().c_str(), nFile).c_str(), pszMode);
+ FILE* file = fopen((GetDataDir() / strprintf("blk%04d.dat", nFile)).string().c_str(), pszMode);
if (!file)
return NULL;
if (nBlockPos != 0 && !strchr(pszMode, 'a') && !strchr(pszMode, 'w'))