diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2016-01-11 21:44:32 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2016-01-11 21:44:32 +0000 |
commit | 31d31f537269e40fc0ac9a35fd295ec96209e162 (patch) | |
tree | 25aefb9a3482afd2c08a84051d2ffb1bf17b5a4b | |
parent | 4af00ad4a820148b41c85a519b36861201ca0d42 (diff) |
ICQ: Fixed memory overrun in CIcqProto::detectUserClient
git-svn-id: http://svn.miranda-ng.org/main/trunk@16084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/IcqOscarJ/src/icq_clients.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) {
|