From 83b5856a191a792fdf0737ea293aa4ad8207e99c Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 12 Feb 2019 03:09:29 +0300 Subject: [PATCH] fix overflow warning, fix little typos --- Win32/Win32Service.cpp | 3 ++- libi2pd_client/HTTPProxy.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Win32/Win32Service.cpp b/Win32/Win32Service.cpp index 4a0058ac..717bc887 100644 --- a/Win32/Win32Service.cpp +++ b/Win32/Win32Service.cpp @@ -297,7 +297,8 @@ void InstallService(PCSTR pszServiceName, PCSTR pszDisplayName, DWORD dwStartTyp FreeHandles(schSCManager, schService); return; } - strncat(szPath, " --daemon", MAX_PATH); + char SvcOpt[] = " --daemon"; + strncat(szPath, SvcOpt, strlen(SvcOpt)); // Open the local default service control manager database schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE); diff --git a/libi2pd_client/HTTPProxy.cpp b/libi2pd_client/HTTPProxy.cpp index 968173db..cfa98a02 100644 --- a/libi2pd_client/HTTPProxy.cpp +++ b/libi2pd_client/HTTPProxy.cpp @@ -156,7 +156,7 @@ namespace proxy { std::stringstream ss; ss << "

Proxy error: Host not found

\r\n" << "

Remote host not found in router's addressbook

\r\n" - << "

You may try to find this host on jumpservices below:

\r\n" + << "

You may try to find this host on jump services below:

\r\n" << "