test_buffer fix

This commit is contained in:
Arvid Norberg 2007-10-07 16:39:45 +00:00
parent a8a74c3513
commit d6789c3315
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ int copy_buffers(T const& b, char* target)
bool compare_chained_buffer(chained_buffer& b, char const* mem, int size)
{
if (size == 0) return true;
std::vector<char> flat(size);
std::list<asio::const_buffer> const& iovec2 = b.build_iovec(size);
int copied = copy_buffers(iovec2, &flat[0]);