Use DIR_SEP instead of /
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 17 Sep 2008 05:13:49 +0000 (22:13 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 17 Sep 2008 17:19:16 +0000 (10:19 -0700)
modules/control/http/http.c

index c6f2ddb..d7c7f1c 100644 (file)
@@ -232,7 +232,7 @@ static int Open( vlc_object_t *p_this )
     if( ( psz_src == NULL ) || ( *psz_src == '\0' ) )
     {
         const char *data_path = config_GetDataDir ();
-        if( asprintf( &psz_src, "%s/http", data_path ) == -1 )
+        if( asprintf( &psz_src, "%s" DIR_SEP "http", data_path ) == -1 )
             psz_src = NULL;
     }