diff options
Diffstat (limited to 'protocols/MSN/src/msn_srv.cpp')
-rw-r--r-- | protocols/MSN/src/msn_srv.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/MSN/src/msn_srv.cpp b/protocols/MSN/src/msn_srv.cpp index 1fcdb0eba2..10b0d5a5dc 100644 --- a/protocols/MSN/src/msn_srv.cpp +++ b/protocols/MSN/src/msn_srv.cpp @@ -324,11 +324,7 @@ void CMsnProto::MSN_SendNicknameUtf(const char* nickname) void CMsnProto::MSN_SetNicknameUtf(const char* nickname)
{
- const size_t urlNickSz = strlen(nickname) * 3 + 1;
- char* urlNick = (char*)alloca(urlNickSz);
-
- UrlEncode(nickname, urlNick, urlNickSz);
- msnNsThread->sendPacket("PRP", "MFN %s", urlNick);
+ msnNsThread->sendPacket("PRP", "MFN %s", ptrA(mir_urlEncode(nickname)));
}
/////////////////////////////////////////////////////////////////////////////////////////
|