diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-11 21:36:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-11 21:36:29 +0300 |
commit | 617831dfc953a5bba630163c01fbeda11445ee78 (patch) | |
tree | be3eb09d61f5652989dcc134f89bab6aab70955e /protocols/Discord/src/avatars.cpp | |
parent | e57cdb681cb10993f4bd08c594a27278af478b1a (diff) |
mir_base64_* => parameters type fix
Diffstat (limited to 'protocols/Discord/src/avatars.cpp')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index d2b629e442..73c5b49da4 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -191,7 +191,7 @@ INT_PTR CDiscordProto::SetMyAvatar(WPARAM, LPARAM lParam) ptrA szFileContents((char*)mir_alloc(iFileLength)); fread(szFileContents, 1, iFileLength, in); fclose(in); - szPayload.Append(ptrA(mir_base64_encode((BYTE*)szFileContents.get(), iFileLength))); + szPayload.Append(ptrA(mir_base64_encode(szFileContents.get(), iFileLength))); JSONNode root; root << CHAR_PARAM("avatar", szPayload); Push(new AsyncHttpRequest(this, REQUEST_PATCH, "/users/@me", nullptr, &root)); |