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/HttpUser.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/HttpUser.cpp')
-rw-r--r-- | plugins/HTTPServer/src/HttpUser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HTTPServer/src/HttpUser.cpp b/plugins/HTTPServer/src/HttpUser.cpp index ee196fbcb5..6acffb37ff 100644 --- a/plugins/HTTPServer/src/HttpUser.cpp +++ b/plugins/HTTPServer/src/HttpUser.cpp @@ -396,8 +396,8 @@ bool CLHttpUser::bProcessGetRequest(char * pszRequest, bool bIsGetCommand) { char* pszRealPath = pclCur->st.pszRealPath;
if (pclCur->bIsDirectory()) {
- strcpy(szRealPath, pclCur->st.pszRealPath);
- strcpy(szSrvPath, pclCur->st.pszSrvPath);
+ strncpy(szRealPath, pclCur->st.pszRealPath, MAX_PATH);
+ strncpy(szSrvPath, pclCur->st.pszSrvPath, MAX_PATH);
pszRealPath = szRealPath;
pszSrvPath = szSrvPath;
|