diff --git a/objecttreeparser.cpp b/objecttreeparser.cpp index b64420a77..0838aae8a 100644 --- a/objecttreeparser.cpp +++ b/objecttreeparser.cpp @@ -481,7 +481,6 @@ namespace KMail { // PENDING(marc) cryptProto = 0 here? } else { QByteArray plainData = cleartext; - plainData.resize( cleartext.size() - 1 ); VerifyDetachedBodyPartMemento * newM = new VerifyDetachedBodyPartMemento( job, cryptProto->keyListJob(), signaturetext, plainData ); if ( allowAsync() ) { @@ -541,8 +540,7 @@ namespace KMail { if ( m ) { result = m->verifyResult(); - const QByteArray & plainData = m->plainText(); - cleartext = QByteArray( plainData.data(), plainData.size() + 1 ); + cleartext = m->plainText(); messagePart.auditLogError = m->auditLogError(); messagePart.auditLog = m->auditLogAsHtml(); key = m->signingKey();