diff --git a/src/apps/mail/Content.cpp b/src/apps/mail/Content.cpp index 07998a992b..956a252c23 100644 --- a/src/apps/mail/Content.cpp +++ b/src/apps/mail/Content.cpp @@ -2478,7 +2478,7 @@ TTextView::Reader::Run(void *_this) size_t length = eol - header; free(buffer); - buffer = (char *)malloc(buffer, length + 1); + buffer = (char *)malloc(length + 1); if (buffer == NULL) goto done;