summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/chan_01login.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 16:19:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 16:19:57 +0000
commitf485b5e4b683cc31168d440dc89574913e814852 (patch)
tree1d5e234805492a7e534d2edaddb2d4f3c75bdd77 /protocols/IcqOscarJ/src/chan_01login.cpp
parenta30574fe4abb9065a8a67a6ce992ce11deef2564 (diff)
all buffer lengths are of size_t now
git-svn-id: http://svn.miranda-ng.org/main/trunk@11173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/chan_01login.cpp')
-rw-r--r--protocols/IcqOscarJ/src/chan_01login.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/chan_01login.cpp b/protocols/IcqOscarJ/src/chan_01login.cpp
index 48fc85dfcc..061212d70a 100644
--- a/protocols/IcqOscarJ/src/chan_01login.cpp
+++ b/protocols/IcqOscarJ/src/chan_01login.cpp
@@ -25,7 +25,7 @@
#include "icqoscar.h"
-void CIcqProto::handleLoginChannel(BYTE *buf, WORD datalen, serverthread_info *info)
+void CIcqProto::handleLoginChannel(BYTE *buf, size_t datalen, serverthread_info *info)
{
icq_packet packet;
@@ -43,11 +43,11 @@ void CIcqProto::handleLoginChannel(BYTE *buf, WORD datalen, serverthread_info *i
sendServPacket(&packet); // greet login server
char szUin[UINMAXLEN];
- WORD wUinLen = strlennull(strUID(m_dwLocalUIN, szUin));
+ size_t wUinLen = mir_strlen(strUID(m_dwLocalUIN, szUin));
debugLogA("Sending %s to %s", "ICQ_SIGNON_AUTH_REQUEST", "login server");
- serverPacketInit(&packet, (WORD)(14 + wUinLen));
+ serverPacketInit(&packet, 14 + wUinLen);
packFNACHeader(&packet, ICQ_AUTHORIZATION_FAMILY, ICQ_SIGNON_AUTH_REQUEST, 0, 0);
packTLV(&packet, 0x0001, wUinLen, (LPBYTE)szUin);
sendServPacket(&packet); // request login digest
@@ -67,7 +67,7 @@ void CIcqProto::handleLoginChannel(BYTE *buf, WORD datalen, serverthread_info *i
if (info->cookieDataLen) {
wLocalSequence = generate_flap_sequence();
- serverCookieInit(&packet, info->cookieData, (WORD)info->cookieDataLen);
+ serverCookieInit(&packet, info->cookieData, info->cookieDataLen);
sendServPacket(&packet);
debugLogA("Sent CLI_IDENT to %s", "communication server");