don't use lstring

you have space for a null terminator there...
This commit is contained in:
Inuyasha 2016-03-03 03:09:35 -08:00
parent 7349cbdbc0
commit 61a0d1bcd1

View file

@ -1169,7 +1169,7 @@ static int mapheaderinfo_get(lua_State *L)
else if (fastcmp(field,"nextlevel")) else if (fastcmp(field,"nextlevel"))
lua_pushinteger(L, header->nextlevel); lua_pushinteger(L, header->nextlevel);
else if (fastcmp(field,"musname")) else if (fastcmp(field,"musname"))
lua_pushlstring(L, header->musname, 6); lua_pushstring(L, header->musname);
else if (fastcmp(field,"mustrack")) else if (fastcmp(field,"mustrack"))
lua_pushinteger(L, header->mustrack); lua_pushinteger(L, header->mustrack);
else if (fastcmp(field,"forcecharacter")) else if (fastcmp(field,"forcecharacter"))