mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2025-02-24 18:40:02 +00:00
Fix crash for msg limit (#203)
This commit is contained in:
parent
d49869f45c
commit
cd51e0cdd7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user