summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-22 15:56:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-22 15:56:17 +0300
commit0a3685cbd7415509472e54c496ff10d7c1889131 (patch)
tree0d21121875fea8f00f5ef82dcbc4eaf789a89b41
parent50351222fcb270449c1bc452ea590704ee403416 (diff)
crash fix
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 28e558c30e..aae53a48b6 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -42,7 +42,7 @@ http::response facebook_client::sendRequest(HttpRequest *request)
}
// Check and append user defined locale if request doesn't have it forced already
- if (!parent->m_locale.empty() && strstr(request->szUrl, "&locale=") == nullptr)
+ if (!parent->m_locale.empty() && request->m_szUrl.Find("&locale=") == -1)
request << CHAR_PARAM("locale", parent->m_locale.c_str());
request->AddHeader("Accept-Language", "en,en-US;q=0.9");
@@ -76,7 +76,7 @@ http::response facebook_client::sendRequest(HttpRequest *request)
break;
}
- parent->debugLogA("@@@ Sending request to '%s'", request->szUrl);
+ parent->debugLogA("@@@ Sending request to '%s'", request->m_szUrl.c_str());
// Send the request
NETLIBHTTPREQUEST *pnlhr = request->Send(handle_);