[vlc-commits] http_auth: fix debug message on 64-bits architectures

Rémi Denis-Courmont git at videolan.org
Tue Apr 1 22:22:57 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr  1 23:21:28 2014 +0300| [568b736d7b6d2460a7817162fde6db6715007919] | committer: Rémi Denis-Courmont

http_auth: fix debug message on 64-bits architectures

The * modifier expects an int. A pointer difference is ptrdiff_t.

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

 src/misc/http_auth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/http_auth.c b/src/misc/http_auth.c
index 6b2bdf2..0e224da 100644
--- a/src/misc/http_auth.c
+++ b/src/misc/http_auth.c
@@ -294,7 +294,7 @@ void http_auth_ParseWwwAuthenticateHeader(
         const char *psz_end = strchr( psz_header, ' ' );
         if ( psz_end )
             msg_Warn( p_this, "Unknown authentication scheme: '%*s'",
-                      psz_end - psz_header, psz_header );
+                      (int)(psz_end - psz_header), psz_header );
         else
             msg_Warn( p_this, "Unknown authentication scheme: '%s'",
                       psz_header );



More information about the vlc-commits mailing list