Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'origin/patches-2.0'

  • Loading branch information...
commit f324b1dffc443b3c03dda8142177b64306775dca 2 parents 0c2bacc + c322c20
Nick Mathewson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sample/http-server.c
View
2  sample/http-server.c
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.