Minor fix in UdpSocket::Send(Packet)

This commit is contained in:
Laurent Gomila 2011-06-12 13:14:50 +02:00
parent 0dc5003969
commit b0ebca9d29

View File

@ -168,7 +168,7 @@ Socket::Status UdpSocket::Send(Packet& packet, const IpAddress& remoteAddress, u
const char* data = packet.OnSend(size); const char* data = packet.OnSend(size);
// Send it // Send it
return Send(data, std::min(size, static_cast<std::size_t>(MaxDatagramSize)), remoteAddress, remotePort); return Send(data, size, remoteAddress, remotePort);
} }