1
0
forked from 0ad/0ad

Oh My God! I broke it! - But it should be fixed now

This was SVN commit r133.
This commit is contained in:
Simon Brenner 2003-12-01 12:14:21 +00:00
parent 250f9009bc
commit 68493a5a20

View File

@ -234,7 +234,8 @@ CStr CStr::Trim(PS_TRIM_MODE Mode)
case PS_TRIM_RIGHT:
{
for (Right = m_String.length()-1; Right >= 0; Right--)
Right = m_String.length();
while (Right--)
if (_istspace(m_String[Right]) == false)
break; // end found, trim len-1 to Right+1 inclusive
} break;
@ -245,7 +246,8 @@ CStr CStr::Trim(PS_TRIM_MODE Mode)
if (_istspace(m_String[Left]) == false)
break; // end found, trim 0 to Left-1 inclusive
for (Right = m_String.length()-1; Right >= 0; Right--)
Right = m_String.length();
while (Right--)
if (_istspace(m_String[Right]) == false)
break; // end found, trim len-1 to Right+1 inclusive
} break;