degesch: fix a Lua error message

This commit is contained in:
Přemysl Eric Janouch 2018-01-07 05:50:21 +01:00
parent dc47b16034
commit 868e34d15c
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions

View File

@ -8401,7 +8401,7 @@ lua_plugin_check_utf8 (lua_State *L, int arg)
{
size_t len;
const char *s = luaL_checklstring (L, arg, &len);
luaL_argcheck (L, utf8_validate (s, len), 1, "must be valid UTF-8");
luaL_argcheck (L, utf8_validate (s, len), arg, "must be valid UTF-8");
return s;
}