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
commit6e5d67e827904571658213054fab6f0399b48801 (patch)
treed0bcc1b33335dc30e04f8e1563508ae7dd5efae4 /util.cpp
parent20c6bfad1e0f5438b6f016f53d0eac9a0415236a (diff)
downloadbitcoin-6e5d67e827904571658213054fab6f0399b48801.tar.xz
switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by m0mchil when username contains non-lower-ASCII characters
-- version 0.3.1 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@102 1a98c847-1fd6-4fd8-948a-caf3550aa51b
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);