aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index c9ca0f09..18a59d60 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -219,7 +219,7 @@ char *ssh_get_user_home_dir(void) {
return NULL;
}
memset(buf, 0, sizeof(buf));
- snprintf(buf, sizeof(buf), "%s", getenv("HOME"));
+ snprintf(buf, sizeof(buf), "%s", szPath);
return strdup(buf);
}