From 7ae94450fde617375a0a79387bed0090550debf7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 4 Dec 2009 16:37:43 -0500 Subject: [PATCH] Fix a snow leopard compile warning in the unit tests. Reported by Sebastian Hahn. --- test/regress_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress_http.c b/test/regress_http.c index 6162f604..c91fbb46 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -2248,7 +2248,7 @@ http_data_length_constraints_test(void) evhttp_set_max_body_size(http, 8190); req = evhttp_request_new(http_data_length_constraints_test_done, NULL); evhttp_add_header(req->output_headers, "Host", "somehost"); - evbuffer_add_printf(req->output_buffer, long_str); + evbuffer_add_printf(req->output_buffer, "%s", long_str); if (evhttp_make_request(evcon, req, EVHTTP_REQ_POST, "/") == -1) { tt_abort_msg("Couldn't make request"); } -- 2.40.0