浏览代码

[http] Fix size_t format specifiers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年前
父节点
当前提交
00afad8122
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/net/tcp/http.c

+ 1
- 1
src/net/tcp/http.c 查看文件

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

正在加载...
取消
保存