fixing TERM to xterm-256color and fixing sizeof(PATH_MAX)
This commit is contained in:
parent
da48ae4da0
commit
98f9a7d9ab
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue