diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Base/StreamWrappers/Binary.php b/snappymail/v/0.0.0/app/libraries/MailSo/Base/StreamWrappers/Binary.php index 397ad5ea5..34dc512f8 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Base/StreamWrappers/Binary.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Base/StreamWrappers/Binary.php @@ -254,7 +254,7 @@ class Binary $sReturn .= self::$sFunctionName($this->sReadEndBuffer.$sReadResult, $this->sReadEndBuffer, $this->sFromEncoding, $this->sToEncoding); - $iDecodeLen = \strlen($sReturn); + $iDecodeLen = \strlen($sReadResult); if ($iCount < $iDecodeLen) { $this->sBuffer = \substr($sReturn, $iCount);