mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Add format guard
This commit is contained in:
@@ -391,7 +391,7 @@ namespace opengl
|
|||||||
lua_pushstring(L, e.what());
|
lua_pushstring(L, e.what());
|
||||||
lua_pcall(L, 1,1, 0);
|
lua_pcall(L, 1,1, 0);
|
||||||
const char* err = lua_tostring(L, -1);
|
const char* err = lua_tostring(L, -1);
|
||||||
return luaL_error(L, err);
|
return luaL_error(L, "%s", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user