Commit 2f918cf7 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

lua: fix an argument validation error

According to the documentation, strings.from_charset expects two
arguments, not three.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b48b2a5c
...@@ -125,7 +125,7 @@ static int vlclua_convert_xml_special_chars( lua_State *L ) ...@@ -125,7 +125,7 @@ static int vlclua_convert_xml_special_chars( lua_State *L )
static int vlclua_from_charset( lua_State *L ) static int vlclua_from_charset( lua_State *L )
{ {
if( lua_gettop( L ) < 3 ) return vlclua_error( L ); if( lua_gettop( L ) < 2 ) return vlclua_error( L );
size_t i_in_bytes; size_t i_in_bytes;
const char *psz_input = luaL_checklstring( L, 2, &i_in_bytes ); const char *psz_input = luaL_checklstring( L, 2, &i_in_bytes );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment