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>
(cherry picked from commit b08cf5263b)
r14.0.x
Allen Winter 17 years ago committed by Michele Calgaro
parent f31b012bad
commit c0f628ef3c
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