diff options
author | Eugene Sandulenko | 2016-05-13 09:08:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-13 09:08:59 +0200 |
commit | d8caeed074a5cfbf512373da582e7f34f2e7d991 (patch) | |
tree | 21aae27266a29f8afd66dc9f9b9c3502ab2ae5a6 /engines/lastexpress | |
parent | 1585727ee0376c4a03c2e1e4b34569749af11b10 (diff) | |
download | scummvm-rg350-d8caeed074a5cfbf512373da582e7f34f2e7d991.tar.gz scummvm-rg350-d8caeed074a5cfbf512373da582e7f34f2e7d991.tar.bz2 scummvm-rg350-d8caeed074a5cfbf512373da582e7f34f2e7d991.zip |
LASTEXPRESS: Fixed potential buffer overrun
Diffstat (limited to 'engines/lastexpress')
-rw-r--r-- | engines/lastexpress/entities/gendarmes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/entities/gendarmes.cpp b/engines/lastexpress/entities/gendarmes.cpp index b628b8dfe7..1b51dd2006 100644 --- a/engines/lastexpress/entities/gendarmes.cpp +++ b/engines/lastexpress/entities/gendarmes.cpp @@ -174,7 +174,7 @@ IMPLEMENT_FUNCTION_IISS(9, Gendarmes, doCompartment, CarIndex, EntityPosition) strcat((char *)¶meters1->seq1, (char *)¶ms->seq1); strcat((char *)¶meters1->seq2, (char *)¶ms->seq1); - strcat((char *)¶meters1->seq3, (char *)¶ms->seq1); + Common::strlcat((char *)¶meters1->seq3, (char *)¶ms->seq1, 9); // Beware, seq3 is smaller than seq1 if ((getEntities()->isInsideCompartment(kEntityPlayer, (CarIndex)params->param1, (EntityPosition)params->param2) || getEntities()->isInsideCompartment(kEntityPlayer, (CarIndex)params->param1, (EntityPosition)parameters2->param7) |