]> git.sesse.net Git - vlc/commitdiff
Use [[ ]] delimiter for string in order to prevent interpreting \ as an escape charac...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 4 Jan 2010 23:10:43 +0000 (00:10 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 4 Jan 2010 23:11:47 +0000 (00:11 +0100)
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 );