From 31d31f537269e40fc0ac9a35fd295ec96209e162 Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Mon, 11 Jan 2016 21:44:32 +0000 Subject: ICQ: Fixed memory overrun in CIcqProto::detectUserClient git-svn-id: http://svn.miranda-ng.org/main/trunk@16084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_clients.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/IcqOscarJ/src/icq_clients.cpp b/protocols/IcqOscarJ/src/icq_clients.cpp index add5fa3ad4..b90a877411 100644 --- a/protocols/IcqOscarJ/src/icq_clients.cpp +++ b/protocols/IcqOscarJ/src/icq_clients.cpp @@ -941,7 +941,7 @@ const char* CIcqProto::detectUserClient( capId = MatchCapability(caps, wLen, &capMimPack, 4); if (capId) { char szPack[16]; - mir_snprintf(szPack, " [%.12s]", (*capId) + 4); + mir_snprintf(szPack, sizeof(szPack), " [%.12s]", (*capId) + 4); // make sure client string is not constant if (szClient != szClientBuf) { -- cgit v1.2.3