mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
f324b1dffc
@ -142,7 +142,7 @@ dump_request_cb(struct evhttp_request *req, void *arg)
|
||||
while (evbuffer_get_length(buf)) {
|
||||
int n;
|
||||
char cbuf[128];
|
||||
n = evbuffer_remove(buf, cbuf, sizeof(buf)-1);
|
||||
n = evbuffer_remove(buf, cbuf, sizeof(cbuf));
|
||||
if (n > 0)
|
||||
(void) fwrite(cbuf, 1, n, stdout);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user