Permalink
Browse files

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

  • Loading branch information...
2 parents 0c2bacc + c322c20 commit f324b1dffc443b3c03dda8142177b64306775dca Nick Mathewson committed Jan 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sample/http-server.c
View
@@ -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);
}

0 comments on commit f324b1d

Please sign in to comment.