Browse files

CRegExp::PrivateRegFind: fix incorrect order of arguments in log

  • Loading branch information...
1 parent 69338a8 commit 613af8b3f93f33c08ae78a8f5760ee6fb1ee7a1d @Karlson2k Karlson2k committed Nov 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/utils/RegExp.cpp
View
4 xbmc/utils/RegExp.cpp
@@ -252,9 +252,9 @@ int CRegExp::PrivateRegFind(size_t bufferLen, const char *str, unsigned int star
{
const size_t startPos = (m_iOvector[0] > fragmentLen) ? CUtf8Utils::RFindValidUtf8Char(m_subject, m_iOvector[0] - fragmentLen) : 0;
if (m_iOvector[0] >= 0 && startPos != std::string::npos)
- CLog::Log(LOGERROR, "PCRE: Bad UTF-8 character, error code: %d, position: %d. Text before bad char: \"%s\"", m_iOvector[0], m_iOvector[1], m_subject.substr(startPos, m_iOvector[0] - startPos + 1).c_str());
+ CLog::Log(LOGERROR, "PCRE: Bad UTF-8 character, error code: %d, position: %d. Text before bad char: \"%s\"", m_iOvector[1], m_iOvector[0], m_subject.substr(startPos, m_iOvector[0] - startPos + 1).c_str());
else
- CLog::Log(LOGERROR, "PCRE: Bad UTF-8 character, error code: %d, position: %d", m_iOvector[0], m_iOvector[1]);
+ CLog::Log(LOGERROR, "PCRE: Bad UTF-8 character, error code: %d, position: %d", m_iOvector[1], m_iOvector[0]);
return -1;
}
case PCRE_ERROR_BADUTF8_OFFSET:

0 comments on commit 613af8b

Please sign in to comment.