[vlc-commits] httpd: the protocol version is stored as a uint8_t
Steve Lhomme
git at videolan.org
Wed Jul 11 15:35:31 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 11 15:31:36 2018 +0200| [7b383088e51ad74f0fc63fcadad537a4097d0e8e] | committer: Steve Lhomme
httpd: the protocol version is stored as a uint8_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b383088e51ad74f0fc63fcadad537a4097d0e8e
---
src/network/httpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 00eedfe7ce..d3cd9324ad 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1560,7 +1560,7 @@ static void httpd_ClientSend(httpd_client_t *cl)
}
p = (char *)cl->p_buffer;
- p += sprintf(p, "%s.%u %d %s\r\n",
+ p += sprintf(p, "%s.%" PRIu8 " %d %s\r\n",
cl->answer.i_proto == HTTPD_PROTO_HTTP ? "HTTP/1" : "RTSP/1",
cl->answer.i_version,
cl->answer.i_status, psz_status);
More information about the vlc-commits
mailing list