[vlc-commits] commit: httpd: use locale-independent us_vasprintf() to write HTTP headers (Pierre Ynard )

git at videolan.org git at videolan.org
Wed Jan 12 19:38:44 CET 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jan 12 19:37:51 2011 +0100| [0eedaef3e3263f23924516c7489338cd00ac8ece] | committer: Pierre Ynard 

httpd: use locale-independent us_vasprintf() to write HTTP headers

This will be useful for RTSP.

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

 src/network/httpd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 9ec1e6e..e28277a 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -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 );
 



More information about the vlc-commits mailing list