summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-02 13:51:03 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-02 13:51:03 +0000
commite1fe0a65e20128c452e2188914b917b83f307325 (patch)
treeb60a352d8a043265e9abc5bae09a01ce5b7ea4a4 /protocols/SkypeWeb/src/skype_contacts.cpp
parent021bf012e681ad50256bb14a82764587845baa77 (diff)
SkypeWeb: fix memory corruption
git-svn-id: http://svn.miranda-ng.org/main/trunk@14818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp
index ab56d537db..cbe321b7d2 100644
--- a/protocols/SkypeWeb/src/skype_contacts.cpp
+++ b/protocols/SkypeWeb/src/skype_contacts.cpp
@@ -282,7 +282,7 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response)
}
}
- if (type == "skype" || type == "msn") skypenames.insert(mir_strdup(skypename.c_str()));
+ if (type == "skype") skypenames.insert(mir_strdup(skypename.c_str()));
}
}
}
@@ -294,7 +294,7 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response)
{
LIST<char> users(1);
for (; i < skypenames.getCount() && users.getCount() <= 50; i++)
- users.insert(skypenames[i]);
+ users.insert(mir_strdup(skypenames[i]));
PushRequest(new GetContactsInfoRequest(m_szTokenSecret, users), &CSkypeProto::LoadContactsInfo);