diff options
author | George Hazan <george.hazan@gmail.com> | 2014-09-10 11:15:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-09-10 11:15:31 +0000 |
commit | 655ec3411bd8d1c934500e7c4be6fd13c5ae3245 (patch) | |
tree | 6fb78b193029f04f9a4a9e0b91ad5023393b0c5b /protocols | |
parent | cb131f47fe09080f2f13eaabfb8398c61c9a073d (diff) |
VK connection fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@10419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 8240b45c84..bd0dc9f103 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -34,16 +34,18 @@ void CVkProto::UninitQueue() void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq)
{
+ CMStringA str;
+
LBL_Restart:
if (pReq->m_szParam.IsEmpty())
pReq->szUrl = pReq->m_szUrl.GetBuffer();
else if (pReq->requestType == REQUEST_GET){
- CMStringA str(FORMAT, "%s?%s", pReq->m_szUrl, pReq->m_szParam);
+ str.Format("%s?%s", pReq->m_szUrl, pReq->m_szParam);
pReq->szUrl = str.GetBuffer();
}
else{
pReq->szUrl = pReq->m_szUrl.GetBuffer();
- pReq->pData = pReq->m_szParam.GetBuffer();
+ pReq->pData = mir_strdup(pReq->m_szParam.GetBuffer());
pReq->dataLength = pReq->m_szParam.GetLength();
}
|