]> granicus.if.org Git - libevent/commitdiff
Fix a snow leopard compile warning in the unit tests.
authorNick Mathewson <nickm@torproject.org>
Fri, 4 Dec 2009 21:37:43 +0000 (16:37 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 4 Dec 2009 21:37:47 +0000 (16:37 -0500)
Reported by Sebastian Hahn.

test/regress_http.c

index 6162f6049f0d9de1a539985529f0bb2c13aab907..c91fbb4675153c833cb297830f6b1d71cd11b5ac 100644 (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");
        }