diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:09:55 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:09:55 +0000 |
commit | 5b2ebe7fef3a15c5db381816241bf16850c8176a (patch) | |
tree | fbe3a0302f1d9ce28b82d04aa4474e38f9768044 /plugins/HTTPServer/src/main.cpp | |
parent | e425f74c45bf3d947f625599d1464c5591544487 (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13634 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer/src/main.cpp')
-rw-r--r-- | plugins/HTTPServer/src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index 361aedcbb8..0dab60b744 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -900,7 +900,7 @@ int nSystemShutdown(WPARAM /*wparam*/, LPARAM /*lparam*/) { MessageBox(NULL, _T("Failed to retrieve plugin path."), MSG_BOX_TITEL, MB_OK);
return 1;
}
- _tcsncat(szPluginPath,_T("\\HTTPServer\\"), MAX_PATH);
+ _tcsncat(szPluginPath, _T("\\HTTPServer\\"), SIZEOF(szPluginPath) - mir_tstrlen(szPluginPath));
int err = CreateDirectoryTree(szPluginPath);
if((err != 0) && (err != ERROR_ALREADY_EXISTS))
{
|