summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2012-11-03 22:32:33 -0700
committerArnavion <arnavion@gmail.com>2012-11-03 22:32:33 -0700
commit6602e6a7c56448806d8a46ac10f85bb6d8deed71 (patch)
treefc03fc5c5b38717f2a25a4e54f52efc3e1a94d77 /src
parentc2c23894fc4e376ff10c9c3cbcfa5c350c1e3073 (diff)
utf8-everywhere: Fixed crash when passing in a config directory using -d
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 08afb967..f1e30b8b 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -320,7 +320,7 @@ get_xdir (void)
 
 			if (portable_mode () || !get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "AppData", out, sizeof (out)))
 			{
-				xdir = ".\\config";
+				xdir = g_strdup (".\\config");
 			}
 			else
 			{