aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-09 15:29:48 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-09 15:29:48 +0000
commitf32339e70021775861466636f8a387aaf5ddf728 (patch)
treed0bcc1b33335dc30e04f8e1563508ae7dd5efae4 /util.cpp
parentc8063ff034797a1f8fe90e0ed959392ebdc3807d (diff)
downloadbitcoin-f32339e70021775861466636f8a387aaf5ddf728.tar.xz
switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by m0mchil when username contains non-lower-ASCII characters
-- version 0.3.1
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.cpp b/util.cpp
index 250861f5e4..4293b2d5e2 100644
--- a/util.cpp
+++ b/util.cpp
@@ -604,7 +604,8 @@ void GetDataDir(char* pszDir)
static char pszCachedDir[MAX_PATH];
if (pszCachedDir[0] == 0)
{
- strlcpy(pszCachedDir, wxStandardPaths::Get().GetUserDataDir().c_str(), sizeof(pszCachedDir));
+ //strlcpy(pszCachedDir, wxStandardPaths::Get().GetUserDataDir().c_str(), sizeof(pszCachedDir));
+ strlcpy(pszCachedDir, GetDefaultDataDir().c_str(), sizeof(pszCachedDir));
_mkdir(pszCachedDir);
}
strlcpy(pszDir, pszCachedDir, MAX_PATH);