Browse Source

Add format guard

vrld 14 years ago
parent
commit
f296fbb903
1 changed files with 1 additions and 1 deletions
  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;