소스 검색

Fix wrong format specifier

Kevin Wojniak 10 년 전
부모
커밋
9f24dd5852
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/unit_test.c

+ 1 - 1
test/unit_test.c

@@ -483,7 +483,7 @@ static void test_mg_download(int use_ssl) {
     /* Fetch data with Content-Length, should succeed and return the defined length. */
     ASSERT((conn = mg_download("localhost", port, use_ssl, ebuf, sizeof(ebuf),
         "POST /content_length HTTP/1.1\r\nContent-Length: %u\r\n\r\n%s",
-        strlen(test_data), test_data)) != NULL);
+        (unsigned)strlen(test_data), test_data)) != NULL);
     h = mg_get_header(conn, "Content-Length");
     ASSERT((h != NULL) && (atoi(h)==(int)strlen(test_data)));
     ASSERT((p1 = read_conn(conn, &len1)) != NULL);