From: Michael Brown Date: Wed, 29 Jun 2011 10:47:16 +0000 (+0100) Subject: [http] Fix size_t format specifiers X-Git-Tag: v1.20.1~2094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00afad81229fcf24512e5fe9f139d03c587d6e72;p=thirdparty%2Fipxe.git [http] Fix size_t format specifiers Signed-off-by: Michael Brown --- diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c index c4c1b628e..012b22683 100644 --- a/src/net/tcp/http.c +++ b/src/net/tcp/http.c @@ -652,7 +652,7 @@ static void http_step ( struct http_request *http ) { /* Determine type of request */ partial = ( http->partial_len != 0 ); - snprintf ( range, sizeof ( range ), "%d-%d", http->partial_start, + snprintf ( range, sizeof ( range ), "%zd-%zd", http->partial_start, ( http->partial_start + http->partial_len - 1 ) ); /* Mark request as transmitted */