From f94d20492af43e1f9e19b5982e4edba2a0db1d49 Mon Sep 17 00:00:00 2001 From: kmribti Date: Sat, 16 Jan 2016 22:54:30 +0100 Subject: [PATCH] Small fix on MessageHeader decodeWord. --- Net/src/MessageHeader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Net/src/MessageHeader.cpp b/Net/src/MessageHeader.cpp index 2030a4364..6745192eb 100644 --- a/Net/src/MessageHeader.cpp +++ b/Net/src/MessageHeader.cpp @@ -339,7 +339,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string // check if there are standar text before the rfc2047 chunk, and if so, copy it. if (pos > 0) { - outs += tmp.substr(0, pos - 1); + outs += tmp.substr(0, pos); } // remove text already copied.