diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-24 17:27:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-24 17:27:34 +0000 |
commit | 5b6f2daa070dff9998af4259daa3926cb70bb817 (patch) | |
tree | daf84f3668e9de0dd2b29d60859d596475b29064 /protocols/MSN/src/msn_commands.cpp | |
parent | 26c78a6a63f3fd7bc2f3179df04615ebbd49eb8f (diff) |
- custom UrlEncode replaced with the core function;
- fix for opening Hotmail Inbox in a browser;
- end of strange buffers;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@6976 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_commands.cpp')
-rw-r--r-- | protocols/MSN/src/msn_commands.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp index a7e5774f43..4821dd4c67 100644 --- a/protocols/MSN/src/msn_commands.cpp +++ b/protocols/MSN/src/msn_commands.cpp @@ -303,20 +303,16 @@ void CMsnProto::sttCustomSmiley(const char* msgBody, char* email, char* nick, in size_t slen = strlen(lastsml);
ptrA buf( mir_base64_encode((PBYTE)lastsml, (unsigned)slen));
+ ptrA smileyName(mir_urlEncode(buf));
int rlen = lstrlenA(buf);
- char* smileyName = (char*)mir_alloc(rlen*3);
- UrlEncode(buf, smileyName, rlen*3);
-
TCHAR path[MAX_PATH];
MSN_GetCustomSmileyFileName(hContact, path, SIZEOF(path), smileyName, iSmileyType);
ft->std.tszCurrentFile = mir_tstrdup(path);
- mir_free(smileyName);
if (p2p_IsDlFileOk(ft))
delete ft;
- else
- {
+ else {
debugLogA("Custom Smiley p2p invite for object : %s", ft->p2p_object);
p2p_invite(iSmileyType, ft, email);
Sleep(3000);
|