]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[http] Fix size_t format specifiers
authorMichael Brown <mcb30@ipxe.org>
Wed, 29 Jun 2011 10:47:16 +0000 (11:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 29 Jun 2011 10:48:29 +0000 (11:48 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/http.c

index c4c1b628e9f5e4e9dfd16a07a96e09eb3654d539..012b226835839c6a771eb9c72a95fb94e57b83c1 100644 (file)
@@ -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 */