regress_buffer: fix 'memcmp' compare size

This commit is contained in:
Maks Naumov 2014-03-25 13:35:13 +02:00 committed by Nick Mathewson
parent 60f8f729d3
commit 79800df7c7

View File

@ -244,7 +244,7 @@ test_evbuffer(void *ptr)
if (memcmp(evbuffer_pullup(
evb, -1), buffer, sizeof(buffer) / 2) != 0 ||
memcmp(evbuffer_pullup(
evb_two, -1), buffer, sizeof(buffer) != 0))
evb_two, -1), buffer, sizeof(buffer)) != 0)
tt_abort_msg("Pullup did not preserve content");
evbuffer_validate(evb);