fix crash for msg limit

This commit is contained in:
sonil 2022-12-04 00:08:14 +08:00
parent 3a541d4b67
commit 9d1fac5b3b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}