From 995d9bcf3ef85618ac6bc44e3b0543f9e357e661 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Aug 2015 17:51:10 +0000 Subject: oops... some more 'hides' warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@15100 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_clients.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_clients.cpp') diff --git a/protocols/IcqOscarJ/src/icq_clients.cpp b/protocols/IcqOscarJ/src/icq_clients.cpp index 1eaa7898ae..add5fa3ad4 100644 --- a/protocols/IcqOscarJ/src/icq_clients.cpp +++ b/protocols/IcqOscarJ/src/icq_clients.cpp @@ -296,8 +296,8 @@ const char* CIcqProto::detectUserClient( szClient = "Virus"; // capabilities based detection - capstr* capId; - char ver[10]; + capstr *capId; + char ver[16]; if (nIsICQ && caps) { // check capabilities for client identification @@ -526,8 +526,6 @@ const char* CIcqProto::detectUserClient( else if (capId = MatchCapability(caps, wLen, &capCorePager, 0xA)) { mir_strcpy(szClientBuf, "CORE Pager"); if (dwFT2 == 0x0FFFF0011 && dwFT3 == 0x1100FFFF && (dwFT1 >> 0x18)) { - char ver[16]; - mir_snprintf(ver, " %d.%d", dwFT1 >> 0x18, (dwFT1 >> 0x10) & 0xFF); if ((dwFT1 & 0xFF) == 0x0B) mir_strcat(ver, " Beta"); @@ -940,7 +938,7 @@ const char* CIcqProto::detectUserClient( // custom miranda packs if (caps && bMirandaIM) { - capstr *capId = MatchCapability(caps, wLen, &capMimPack, 4); + capId = MatchCapability(caps, wLen, &capMimPack, 4); if (capId) { char szPack[16]; mir_snprintf(szPack, " [%.12s]", (*capId) + 4); -- cgit v1.2.3