Przeglądaj źródła

[http] Fix size_t format specifiers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 lat temu
rodzic
commit
00afad8122
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/net/tcp/http.c

+ 1
- 1
src/net/tcp/http.c Wyświetl plik

@@ -652,7 +652,7 @@ static void http_step ( struct http_request *http ) {
652 652
 
653 653
 	/* Determine type of request */
654 654
 	partial = ( http->partial_len != 0 );
655
-	snprintf ( range, sizeof ( range ), "%d-%d", http->partial_start,
655
+	snprintf ( range, sizeof ( range ), "%zd-%zd", http->partial_start,
656 656
 		   ( http->partial_start + http->partial_len - 1 ) );
657 657
 
658 658
 	/* Mark request as transmitted */

Ładowanie…
Anuluj
Zapisz