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/AimOscar | |
parent | e57cdb681cb10993f4bd08c594a27278af478b1a (diff) |
mir_base64_* => parameters type fix
Diffstat (limited to 'protocols/AimOscar')
-rwxr-xr-x | protocols/AimOscar/src/connection.cpp | 5 | ||||
-rwxr-xr-x | protocols/AimOscar/src/proto.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/protocols/AimOscar/src/connection.cpp b/protocols/AimOscar/src/connection.cpp index 42b69e9f3d..98e6d1f853 100755 --- a/protocols/AimOscar/src/connection.cpp +++ b/protocols/AimOscar/src/connection.cpp @@ -327,8 +327,7 @@ void CAimProto::aim_connection_clientlogin(void) }
if(COOKIE)
mir_free(COOKIE);
- COOKIE = (char*)mir_base64_decode(cookie, (unsigned int*)&COOKIE_LENGTH);
-
+ COOKIE = (char*)mir_base64_decode(cookie, &COOKIE_LENGTH);
m_hServerConn = aim_connect(bos_host, bos_port, (tls_cert_name[0] && encryption) ? true : false, bos_host);
if (!m_hServerConn) {
@@ -337,8 +336,6 @@ void CAimProto::aim_connection_clientlogin(void) return;
}
-
-
ForkThread(&CAimProto::aim_protocol_negotiation, nullptr);
}
diff --git a/protocols/AimOscar/src/proto.h b/protocols/AimOscar/src/proto.h index da05270f3d..3d6eb53414 100755 --- a/protocols/AimOscar/src/proto.h +++ b/protocols/AimOscar/src/proto.h @@ -98,7 +98,7 @@ struct CAimProto : public PROTO<CAimProto> mir_cs connMutex;
char* COOKIE;
- int COOKIE_LENGTH;
+ size_t COOKIE_LENGTH;
char* MAIL_COOKIE;
int MAIL_COOKIE_LENGTH;
char* AVATAR_COOKIE;
|