mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-04 13:59:04 +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…
Reference in New Issue
Block a user