From c4937cedeaea7983407ee3f9432d1355927f3c5f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 16 Jul 2013 13:36:52 +0200 Subject: misc: Use the szPath variable instead of calling getenv. --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index c9ca0f0..18a59d6 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); } -- cgit