From 5cd6d51c8b23a429f1017f96e4db2f6864a63c70 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 9 Apr 2015 18:53:19 +0000 Subject: HTTPServer: - Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/HTTPServer/src/main.cpp') diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index d2ababd31b..89b61986c6 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -728,11 +728,11 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) { share.pszRealPath = szRealPath; share.dwMaxRealPath = sizeof(szRealPath); - strncpy(share.pszRealPath, p[0], SIZEOF(share.pszRealPath) - 1); + strcpy(share.pszRealPath, p[0]); share.pszSrvPath = szSrvPath; share.dwMaxSrvPath = sizeof(szSrvPath); - strncpy(share.pszSrvPath, p[1], SIZEOF(share.pszSrvPath) - 1); + strcpy(share.pszSrvPath, p[1]); if (CallService(MS_HTTP_ADD_CHANGE_REMOVE, 0, (LPARAM)&share)) break; -- cgit v1.2.3