From e2899844eb096e826c9d5bba1e338a5fd7928577 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jul 2018 22:15:45 +0300 Subject: fix for broken folder name in MRA file transfers --- protocols/MRA/src/MraFilesQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/MRA') 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))); -- cgit v1.2.3