[vlc-devel] commit: Use DIR_SEP instead of / (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Sep 17 19:49:18 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 16 22:13:49 2008 -0700| [2613a857af59bf09e3210c0f8555f8d01ed0c362] | committer: Jean-Baptiste Kempf 

Use DIR_SEP instead of /
(cherry picked from commit 747d3d9fa7f686f2edb04f58bee2a54ea0797c19)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2613a857af59bf09e3210c0f8555f8d01ed0c362
---

 modules/control/http/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/control/http/http.c b/modules/control/http/http.c
index c6f2ddb..d7c7f1c 100644
--- a/modules/control/http/http.c
+++ b/modules/control/http/http.c
@@ -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;
     }
 




More information about the vlc-devel mailing list