From cd51e0cdd7051342d6c4b88f0be358b3b4d94aa2 Mon Sep 17 00:00:00 2001 From: sonilyan <286258386@qq.com> Date: Tue, 6 Dec 2022 17:32:21 +0800 Subject: [PATCH] Fix crash for msg limit (#203) --- src/message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.cc b/src/message.cc index ce87165..c68b203 100644 --- a/src/message.cc +++ b/src/message.cc @@ -510,7 +510,7 @@ static int _message_load_field(File* file, char* str) *(str + len) = ch; len++; - if (len > 1024) { + if (len >= 1024) { debugPrint("\nError reading message file - text exceeds limit.\n"); return 4; }