From 1ca35422a252e1b254d6a4823717d39f7988514f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Aug 2015 20:12:02 +0000 Subject: fix for wrong CMString::Mid calls git-svn-id: http://svn.miranda-ng.org/main/trunk@14944 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/ircproto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src/ircproto.cpp') diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp index 9504b70bc9..da16702dbe 100644 --- a/protocols/IRCG/src/ircproto.cpp +++ b/protocols/IRCG/src/ircproto.cpp @@ -556,7 +556,7 @@ HANDLE __cdecl CIrcProto::SendFile(MCONTACT hContact, const TCHAR*, TCHAR** ppsz int i = dci->sFileAndPath.ReverseFind('\\'); if (i != -1) { dci->sPath = dci->sFileAndPath.Mid(0, i + 1); - dci->sFile = dci->sFileAndPath.Mid(i + 1, dci->sFileAndPath.GetLength()); + dci->sFile = dci->sFileAndPath.Mid(i + 1); } CMString sFileWithQuotes = dci->sFile; @@ -757,7 +757,7 @@ int CIrcProto::SetStatusInternal(int iNewStatus, bool bIsInternal) } else if (iNewStatus == ID_STATUS_AWAY && IsConnected()) //go to away while connected { - PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450).c_str()); + PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450)); return 0; } else if (iNewStatus == ID_STATUS_ONLINE && IsConnected()) //already online @@ -815,7 +815,7 @@ int __cdecl CIrcProto::SetAwayMsg(int status, const TCHAR* msg) m_statusMessage = newStatus; if (m_iStatus == ID_STATUS_AWAY) - PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450).c_str()); + PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450)); } } -- cgit v1.2.3