diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:22 +0300 |
commit | 9374c8e701dcb61a46c89a854235d91a23bf672e (patch) | |
tree | ad366bc7f47da578fb33a57c32912689f5aadecb /protocols/SkypeWeb | |
parent | 3c5923d11431c515db57e4e972d53bf0443f1bcb (diff) |
warning fixes
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_trouter.cpp | 2 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index 2b046799dd..eaeec9c62c 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -141,7 +141,7 @@ void CSkypeProto::TRouterThread(void*) errors = 0;
if (response->pData) {
- char *json = strstr(response->pData, "{");
+ char *json = strchr(response->pData, '{');
if (json != NULL) {
JSONNode root = JSONNode::parse(json);
std::string szBody = root["body"].as_string();
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index 66f68b297f..15bbc2853a 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -349,7 +349,7 @@ char *CSkypeProto::RemoveHtml(const char *text) for (std::string::size_type i = 0; i < data.length(); i++) { if (data.at(i) == '<') { - i = data.find(">", i); + i = data.find('>', i); if (i == std::string::npos) break; @@ -358,7 +358,7 @@ char *CSkypeProto::RemoveHtml(const char *text) if (data.at(i) == '&') { std::string::size_type begin = i; - i = data.find(";", i); + i = data.find(';', i); if (i == std::string::npos) { i = begin; } |