Add format guard

This commit is contained in:
vrld
2011-10-26 21:12:17 +02:00
parent d8b1d67a34
commit f296fbb903
@@ -391,7 +391,7 @@ namespace opengl
lua_pushstring(L, e.what());
lua_pcall(L, 1,1, 0);
const char* err = lua_tostring(L, -1);
return luaL_error(L, err);
return luaL_error(L, "%s", err);
}
return 1;