Fix crash for msg limit (#203)

This commit is contained in:
sonilyan 2022-12-06 17:32:21 +08:00 committed by GitHub
parent d49869f45c
commit cd51e0cdd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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