]> git.sesse.net Git - vlc/commitdiff
httpd: use locale-independent us_vasprintf() to write HTTP headers
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 12 Jan 2011 18:37:51 +0000 (19:37 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 12 Jan 2011 18:37:51 +0000 (19:37 +0100)
This will be useful for RTSP.

src/network/httpd.c

index 9ec1e6e65b5438e959f6c4270b88d02c4f44f8b8..e28277a7c9459cb026e37f79304377ef19698b0d 100644 (file)
@@ -37,6 +37,7 @@
 #include <vlc_acl.h>
 #include <vlc_strings.h>
 #include <vlc_rand.h>
+#include <vlc_charset.h>
 #include "../libvlc.h"
 
 #include <string.h>
@@ -1378,7 +1379,7 @@ void httpd_MsgAdd( httpd_message_t *msg, const char *name, const char *psz_value
     char *value = NULL;
 
     va_start( args, psz_value );
-    if( vasprintf( &value, psz_value, args ) == -1 )
+    if( us_vasprintf( &value, psz_value, args ) == -1 )
         value = NULL;
     va_end( args );