fixed sendto() error reporting - hopefully
[senf.git] / senf / Socket / ReadWritePolicy.cc
index 97a96eb..eb04cf7 100644 (file)
@@ -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;