diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-26 22:15:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-26 22:15:45 +0300 |
commit | e2899844eb096e826c9d5bba1e338a5fd7928577 (patch) | |
tree | 2b53fef3e17d5f737b182a2b4fde9a24991eabd6 /protocols/MRA | |
parent | 1019387a8f6ccc087a113f138c5237146492a356 (diff) |
fix for broken folder name in MRA file transfers
Diffstat (limited to 'protocols/MRA')
-rw-r--r-- | protocols/MRA/src/MraFilesQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/MRA/src/MraFilesQueue.cpp b/protocols/MRA/src/MraFilesQueue.cpp index c106a7b073..dee5082350 100644 --- a/protocols/MRA/src/MraFilesQueue.cpp +++ b/protocols/MRA/src/MraFilesQueue.cpp @@ -269,7 +269,7 @@ DWORD CMraProto::MraFilesQueueAccept(HANDLE hQueue, DWORD dwIDRequest, LPCWSTR l DWORD dwRetErrorCode = MraFilesQueueItemFindByID(hQueue, dwIDRequest, &dat);
if (dwRetErrorCode == NO_ERROR) {
MRA_FILES_THREADPROC_PARAMS *pmftpp = (MRA_FILES_THREADPROC_PARAMS*)mir_calloc(sizeof(MRA_FILES_THREADPROC_PARAMS));
- dat->lpwszPath = (LPWSTR)mir_calloc((dwPathSize*sizeof(WCHAR)));
+ dat->lpwszPath = (LPWSTR)mir_calloc(((dwPathSize+2)*sizeof(WCHAR)));
dat->dwPathSize = dwPathSize;
memcpy(dat->lpwszPath, lpwszPath, (dwPathSize*sizeof(WCHAR)));
|