mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
game.c: fix out-of-bounds write in G_GetSubString().
git-svn-id: https://svn.eduke32.com/eduke32@3852 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f8c04673b4
commit
335fa81b18
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ char* G_GetSubString(const char *text, const char *end, const int32_t iter, cons
|
|||
++counter;
|
||||
}
|
||||
|
||||
line[++counter] = '\0';
|
||||
line[counter] = '\0';
|
||||
|
||||
return line;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue