Explorar el Código

[http] Fix size_t format specifiers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 13 años
padre
commit
00afad8122
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/net/tcp/http.c

+ 1
- 1
src/net/tcp/http.c Ver fichero

@@ -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 */

Loading…
Cancelar
Guardar