diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 2 | ||||
-rw-r--r-- | cpp/src/Ice/Endpoint.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index f359c5578dc..e2573e23e0e 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -380,7 +380,7 @@ IceInternal::BasicStream::write(const vector<Int>& v) p = reinterpret_cast<const Byte*>(v.begin()); for (int j = 0 ; j < sz ; ++j) { - reverse_copy(p, p + sizeof(Short), b.begin() + pos); + reverse_copy(p, p + sizeof(Int), b.begin() + pos); p += sizeof(Int); pos += sizeof(Int); } diff --git a/cpp/src/Ice/Endpoint.cpp b/cpp/src/Ice/Endpoint.cpp index 9059ebb68c9..83a35e0a535 100644 --- a/cpp/src/Ice/Endpoint.cpp +++ b/cpp/src/Ice/Endpoint.cpp @@ -973,7 +973,7 @@ string IceInternal::UdpEndpoint::toString() const { ostringstream s; - s << "tcp"; + s << "udp"; if (_host != getLocalHost(true)) // TODO: Whether numeric or not should be configurable { s << " -h " << _host; |