diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 09:58:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 09:58:02 +0000 |
commit | 389916d6810e52a2d8e5676248684788ef17e42a (patch) | |
tree | 2baa7f13b6d5fbe0c496626618681ac6c8943fdf /protocols/IcqOscarJ/src/oscar_filetransfer.cpp | |
parent | 0eb671f7d30f51c6a0f30ed99a4ec123479f3239 (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/oscar_filetransfer.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/oscar_filetransfer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp index 673d072561..b1f5cb1af2 100644 --- a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp +++ b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp @@ -2090,7 +2090,7 @@ void CIcqProto::oft_sendPeerInit(oscar_connection *oc) ft->wEncoding = 2; // ucs-2
WCHAR *pwsThisFile = make_unicode_string(pszThisFileName);
SAFE_FREE((void**)&pszThisFileName);
- ft->cbRawFileName = strlennull(pwsThisFile) * sizeof(WCHAR) + 2;
+ ft->cbRawFileName = WORD(strlennull(pwsThisFile) * sizeof(WCHAR)) + 2;
if (ft->cbRawFileName < 64)
ft->cbRawFileName = 64;
ft->rawFileName = (char*)SAFE_MALLOC(ft->cbRawFileName);
|