diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-30 21:13:22 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-30 21:13:22 +0000 |
commit | 8f0f742e611059bd3b312aa9986e94e4bfc4e63e (patch) | |
tree | 781073b2e94dbdee9db0a69c3dd1b91f0614a110 /plugins/HTTPServer/src/main.cpp | |
parent | 3b49555625538d62f6e05c6b7bb4009314b54bc9 (diff) |
HTTPServer: Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12566 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer/src/main.cpp')
-rw-r--r-- | plugins/HTTPServer/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index 89b61986c6..d2ababd31b 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);
- strcpy(share.pszRealPath, p[0]);
+ strncpy(share.pszRealPath, p[0], SIZEOF(share.pszRealPath) - 1);
share.pszSrvPath = szSrvPath;
share.dwMaxSrvPath = sizeof(szSrvPath);
- strcpy(share.pszSrvPath, p[1]);
+ strncpy(share.pszSrvPath, p[1], SIZEOF(share.pszSrvPath) - 1);
if (CallService(MS_HTTP_ADD_CHANGE_REMOVE, 0, (LPARAM)&share))
break;
|