diff --git a/src/quotedprintable.cpp b/src/quotedprintable.cpp index 3b901f4..34d170c 100644 --- a/src/quotedprintable.cpp +++ b/src/quotedprintable.cpp @@ -52,7 +52,8 @@ QByteArray QuotedPrintable::decode(const QString &input) { if (input.at(i).toLatin1() == '=') { - output.append((hexVal[input.at(++i).toLatin1() - '0'] << 4) + hexVal[input.at(++i).toLatin1() - '0']); + output.append((hexVal[input.at(i+1).toLatin1() - '0'] << 4) + hexVal[input.at(i+2).toLatin1() - '0']); + i += 2; } else {