From 2c4db439d235b68478d90c450289d2d0ba418547 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 18 Mar 2020 08:59:09 -0400 Subject: add upstream 10.21 --- libssh2/libssh2_wrap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libssh2') diff --git a/libssh2/libssh2_wrap.h b/libssh2/libssh2_wrap.h index 37a62a24..98b73af2 100644 --- a/libssh2/libssh2_wrap.h +++ b/libssh2/libssh2_wrap.h @@ -174,8 +174,10 @@ std::wstring formatSshStatusCode(int sc) ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KNOWN_HOSTS); ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_CHANNEL_WINDOW_FULL); ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KEYFILE_AUTH_FAILED); + + default: + return replaceCpy(L"SSH status %x", L"%x", numberTo(sc)); } - return replaceCpy(L"SSH status %x.", L"%x", numberTo(sc)); } @@ -219,7 +221,7 @@ std::wstring formatSftpStatusCode(unsigned long sc) case 30: return L"SSH_FX_GROUP_INVALID"; case 31: return L"SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK"; - default: return replaceCpy(L"SFTP status %x.", L"%x", numberTo(sc)); + default: return replaceCpy(L"SFTP status %x", L"%x", numberTo(sc)); //*INDENT-ON* } } -- cgit