From: Nick Mathewson Date: Fri, 4 Dec 2009 21:37:43 +0000 (-0500) Subject: Fix a snow leopard compile warning in the unit tests. X-Git-Tag: release-2.0.4-alpha~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ae94450fde617375a0a79387bed0090550debf7;p=libevent Fix a snow leopard compile warning in the unit tests. Reported by Sebastian Hahn. --- 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"); }