mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
regress_buffer: fix 'memcmp' compare size
This commit is contained in:
parent
60f8f729d3
commit
79800df7c7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user