[MINOR] stats_dump_errors_to_buffer: use buffer_feed_chunk()
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 21:49:35 +0000 (23:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 09:00:11 +0000 (11:00 +0200)
commit61b347342cbf93abc96bf0a9a4744ea5acce00c4
tree9ecd5cbba431fca208ea7cdd0878cef1a6c9b118
parentfe8903cc76184ef20109d9ec9729a88368b2ccd7
[MINOR] stats_dump_errors_to_buffer: use buffer_feed_chunk()

We can simplify the code in the stats functions using buffer_feed_chunk()
instead of buffer_write_chunk(). Let's start with this function. This
patch also fixed an issue where we could dump past the end of the capture
buffer if it is shorter than the captured request.
include/proto/dumpstats.h
src/dumpstats.c