]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/intf.c
Use [[ ]] delimiter for string in order to prevent interpreting \ as an escape charac...
[vlc] / modules / misc / lua / intf.c
index 2dedafd6538a39e9d0a9e02b336bd13b27f01a6b..3074355caedd70c182f95caab7facbd12059c4bf 100644 (file)
@@ -244,7 +244,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
     *psz_char = '\0';
     /* FIXME: don't use luaL_dostring */
     if( asprintf( &psz_command,
-                  "package.path = \"%s"DIR_SEP"modules"DIR_SEP"?.lua;\"..package.path",
+                  "package.path = [[%s"DIR_SEP"modules"DIR_SEP"?.lua;]]..package.path",
                   p_sys->psz_filename ) < 0 )
     {
         free( p_sys->psz_filename );