diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-09 15:29:48 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-09 15:29:48 +0000 |
commit | 6e5d67e827904571658213054fab6f0399b48801 (patch) | |
tree | d0bcc1b33335dc30e04f8e1563508ae7dd5efae4 /util.cpp | |
parent | 20c6bfad1e0f5438b6f016f53d0eac9a0415236a (diff) |
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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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);
|