summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/commandmonitor.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-26 20:02:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-26 20:02:22 +0300
commit9374c8e701dcb61a46c89a854235d91a23bf672e (patch)
treead366bc7f47da578fb33a57c32912689f5aadecb /protocols/IRCG/src/commandmonitor.cpp
parent3c5923d11431c515db57e4e972d53bf0443f1bcb (diff)
warning fixes
Diffstat (limited to 'protocols/IRCG/src/commandmonitor.cpp')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp
index 448336e3c9..fdc621b4db 100644
--- a/protocols/IRCG/src/commandmonitor.cpp
+++ b/protocols/IRCG/src/commandmonitor.cpp
@@ -1495,10 +1495,10 @@ bool CIrcProto::OnIrc_LIST(const CIrcMessage *pmsg)
wchar_t* temp = mir_wstrdup(pmsg->parameters[pmsg->parameters.getCount() - 1]);
wchar_t* find = wcsstr(temp, L"[+");
- wchar_t* find2 = wcsstr(temp, L"]");
+ wchar_t* find2 = wcschr(temp, ']');
wchar_t* save = temp;
if (find == temp && find2 != nullptr && find + 8 >= find2) {
- temp = wcsstr(temp, L"]");
+ temp = wcschr(temp, ']');
if (mir_wstrlen(temp) > 1) {
temp++;
temp[0] = 0;