mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'mapmusname-fix' into 'next'
Fix mapmusname not overwriting Lua-provided strings (resolves #880) Closes #880 See merge request STJr/SRB2!1803
This commit is contained in:
commit
7454235882
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
|
|||
if (strlen(str) < strlength)
|
||||
return luaL_error(L, "string must not contain embedded zeros!");
|
||||
|
||||
strncpy(mapmusname, str, strlength);
|
||||
strlcpy(mapmusname, str, sizeof mapmusname);
|
||||
}
|
||||
else if (fastcmp(word, "mapmusflags"))
|
||||
mapmusflags = (UINT16)luaL_checkinteger(L, 2);
|
||||
|
|
Loading…
Reference in a new issue