From c688880f9e07b21fc0ec72e55bcc5ccabcf4cc63 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 2 Dec 2014 19:33:19 +0100 Subject: lua: fix broken error message luaL_error() doesn't support %.*s, because it uses Lua's own format string mechanism that just looks like the C one. Just drop this part. --- player/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua.c b/player/lua.c index d2990c3b28..7f7fb69bce 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1043,7 +1043,7 @@ static int script_input_enable_section(lua_State *L) } else if (bstr_equals0(val, "exclusive")) { flags |= MP_INPUT_EXCLUSIVE; } else { - luaL_error(L, "invalid flag: '%.*s'", BSTR_P(val)); + luaL_error(L, "invalid flag"); } } mp_input_enable_section(mpctx->input, section, flags); -- cgit v1.2.3