瀏覽代碼

Add format guard

vrld 14 年之前
父節點
當前提交
f296fbb903
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 1 - 1
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -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;