mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
Mapster32: fix an oob write in test_map().
git-svn-id: https://svn.eduke32.com/eduke32@5265 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7b6e47f444
commit
efe3d87cf8
1 changed files with 1 additions and 2 deletions
|
@ -10757,8 +10757,7 @@ void test_map(int32_t mode)
|
||||||
{
|
{
|
||||||
slen = fullparam-mapster32_fullpath+1;
|
slen = fullparam-mapster32_fullpath+1;
|
||||||
Bstrncpy(game_executable, mapster32_fullpath, slen);
|
Bstrncpy(game_executable, mapster32_fullpath, slen);
|
||||||
// game_executable is now expected to not be NULL-terminated!
|
Bstrncpy(game_executable+slen, DefaultGameExec, sizeof(game_executable)-slen);
|
||||||
Bstrncpy(game_executable+slen, DefaultGameExec, sizeof(game_executable));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Bstrncpy(game_executable, DefaultGameLocalExec, sizeof(game_executable));
|
Bstrncpy(game_executable, DefaultGameLocalExec, sizeof(game_executable));
|
||||||
|
|
Loading…
Reference in a new issue