Fix a snow leopard compile warning in the unit tests.

Reported by Sebastian Hahn.
This commit is contained in:
Nick Mathewson 2009-12-04 16:37:43 -05:00
parent 0d744aa173
commit 7ae94450fd

View File

@ -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");
}