summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/windows.c b/windows.c
index eaa389447..ff6e2e036 100644
--- a/windows.c
+++ b/windows.c
@@ -15,7 +15,7 @@ const char *system_default_filename(void)
int len;
/* I don't think this works on Windows */
- user = getenv("LOGNAME");
+ user = getenv("USERNAME");
if (! SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, datapath))) {
datapath[0] = '.';
datapath[1] = '\0';