From 413598d13f39669f93a7a2e0d515f91953aa8da0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 12:14:49 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@11510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_proto.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp') diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index 0227dd5ed1..7860b1190c 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -1163,7 +1163,7 @@ int __cdecl CIcqProto::SendContacts(MCONTACT hContact, int, int nContacts, MCONT char *pBody, *pBuffer = pBody = (char *)SAFE_MALLOC(nBodyLength); null_strcpy(pBuffer, szCount, nBodyLength - 1); pBuffer += mir_strlen(pBuffer); - *pBuffer++ = char(0xFE); + *pBuffer++ = -2; for (i = 0; i < nContacts; i++) { if (contacts[i].uin) { _itoa(contacts[i].uin, szContactUin, 10); @@ -1172,10 +1172,10 @@ int __cdecl CIcqProto::SendContacts(MCONTACT hContact, int, int nContacts, MCONT else strcpy(pBuffer, contacts[i].uid); pBuffer += mir_strlen(pBuffer); - *pBuffer++ = char(0xFE); + *pBuffer++ = -2; strcpy(pBuffer, contacts[i].szNick); pBuffer += mir_strlen(pBuffer); - *pBuffer++ = char(0xFE); + *pBuffer++ = -2; } for (i = 0; i < nContacts; i++) { // release memory @@ -1188,10 +1188,8 @@ int __cdecl CIcqProto::SendContacts(MCONTACT hContact, int, int nContacts, MCONT if (m_bDCMsgEnabled && IsDirectConnectionOpen(hContact, DIRECTCONN_STANDARD, 0)) { int iRes = icq_SendDirectMessage(hContact, pBody, nBodyLength, pCookieData, NULL); - if (iRes) { SAFE_FREE((void**)&pBody); - return iRes; // we succeded, return } } @@ -1500,7 +1498,7 @@ int __cdecl CIcqProto::SendUrl(MCONTACT hContact, int, const char* url) size_t nBodyLen = nUrlLen + nDescLen + 2; char *szBody = (char *)_alloca(nBodyLen); strcpy(szBody, szDesc); - szBody[nDescLen] = char(0xFE); // Separator + szBody[nDescLen] = -2; // Separator strcpy(szBody + nDescLen + 1, url); if (m_bDCMsgEnabled && IsDirectConnectionOpen(hContact, DIRECTCONN_STANDARD, 0)) { -- cgit v1.2.3