diff --git a/contrib/win32/win32compat/misc.c b/contrib/win32/win32compat/misc.c index 111ee3845..5b764668d 100644 --- a/contrib/win32/win32compat/misc.c +++ b/contrib/win32/win32compat/misc.c @@ -912,7 +912,7 @@ sanitized_path(const char *path) if (path[0] == '/' && path[1]) { if (path[2] == ':') { if (path[3] == '\0') { /* make "/x:" as "x:\\" */ - if((r = strncpy_s(newPath, sizeof(PATH_MAX), path + 1, strlen(path) - 1)) != 0 ) { + if((r = strncpy_s(newPath, sizeof(newPath), path + 1, strlen(path) - 1)) != 0 ) { debug3("memcpy_s failed with error: %d.", r); return NULL; } diff --git a/contrib/win32/win32compat/wmain_common.c b/contrib/win32/win32compat/wmain_common.c index cff7bc67a..73623331d 100644 --- a/contrib/win32/win32compat/wmain_common.c +++ b/contrib/win32/win32compat/wmain_common.c @@ -54,7 +54,7 @@ wmain(int argc, wchar_t **wargv) { _putenv("SSH_AUTH_SOCK=\\\\.\\pipe\\openssh-ssh-agent"); if (getenv("TERM") == NULL) - _putenv("TERM=xterm"); + _putenv("TERM=xterm-256color"); w32posix_initialize();