Backport: Check the length before the crlf->lf conversion to avoid false alerts.

svn path=/branches/KDE_3_3_BRANCH/kdepim/; revision=344033
wilder-work
Ingo Klcker 22 years ago
parent 94dc5416a7
commit bb930b4cd1
  1. 4
      kmmsgpart.cpp

@ -300,11 +300,11 @@ QCString KMMessagePart::bodyDecoded(void) const
break;
}
}
result = result.replace( "\r\n", "\n" ); // CRLF -> LF conversion
kdWarning( result.length() != (unsigned int)len, 5006 )
<< "KMMessagePart::bodyDecoded(): body is binary but used as text!" << endl;
result = result.replace( "\r\n", "\n" ); // CRLF -> LF conversion
assert( mBodyDecodedSize < 0 || mBodyDecodedSize == len );
if ( mBodyDecodedSize < 0 )
mBodyDecodedSize = len; // cache decoded size

Loading…
Cancel
Save