From 9374c8e701dcb61a46c89a854235d91a23bf672e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jul 2019 20:02:16 +0300 Subject: warning fixes --- protocols/IRCG/src/commandmonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/IRCG/src') 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; -- cgit v1.2.3