From: mtk Date: Sun, 14 Aug 2011 13:27:08 +0000 (+0000) Subject: fixed sendto() error reporting - hopefully X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ddb2132be4265f8a0d7d4c954c7c9401e59d027c;p=senf.git fixed sendto() error reporting - hopefully git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1807 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Socket/ReadWritePolicy.cc b/senf/Socket/ReadWritePolicy.cc index 97a96eb..eb04cf7 100644 --- a/senf/Socket/ReadWritePolicy.cc +++ b/senf/Socket/ReadWritePolicy.cc @@ -136,7 +136,7 @@ prefix_ unsigned senf::WriteablePolicy::do_writeto(FileHandle & handle, std::stringstream a, b; senf::hexdump( (char*) addr , ((char*) addr) + len , a); senf::hexdump( (char*) buffer , ((char*) buffer) + size , b); - SENF_THROW_SYSTEM_EXCEPTION("::sendto(" + senf::str(b) + ") to " + senf::str(a)); + SENF_THROW_SYSTEM_EXCEPTION("::sendto(" + b.str() + ") to " + a.str()); } } while (rv<0); return rv;