Mischael's fix for "IMAP KIO process dies (due to trailing nulls?)"

BUG: 153885

Cherry-picked from: 1d8208d3815088eea3c36767acb0c5a0a1a61ec8

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
pull/29/head
Allen Winter 17 years ago committed by Michele Calgaro
parent 5aa4ac948f
commit b08cf5263b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -196,6 +196,9 @@ ulong imapInfo::_flags (const TQCString & inFlags)
ulong flags = 0;
parseString flagsString;
flagsString.data.duplicate(inFlags.data(), inFlags.length());
if ( flagsString.isEmpty() ) {
return flags;
}
if (flagsString[0] == '(')
flagsString.pos++;

Loading…
Cancel
Save