X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19ae5cf071340a670f8ad4e808aff1657c648c5c..caaa4cfd6779b689d6723e06df23cc23d1799fd3:/src/common/ftp.cpp?ds=inline diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index 00d44539cd..5d1731ad77 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -158,12 +158,12 @@ bool wxFTP::GetResult(char exp) { if ((m_lastError = GetLine(this, m_lastResult))) return FALSE; - if (m_lastResult[0] != exp) { + if (m_lastResult.GetChar(0) != exp) { m_lastError = wxPROTO_PROTERR; return FALSE; } - if (m_lastResult[3] == '-') { + if (m_lastResult.GetChar(3) == '-') { wxString key = m_lastResult.Left((size_t)3); key += ' ';