summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2001-12-01 02:45:23 +0000
committerMark Spruiell <mes@zeroc.com>2001-12-01 02:45:23 +0000
commit2af74c0da2e7a2e623ba4d7cd423af524044c69d (patch)
tree16a47e426e008a8b1ea8875631d35bfe37c83d9b /cpp/src
parentminor edits (diff)
downloadice-2af74c0da2e7a2e623ba4d7cd423af524044c69d.tar.bz2
ice-2af74c0da2e7a2e623ba4d7cd423af524044c69d.tar.xz
ice-2af74c0da2e7a2e623ba4d7cd423af524044c69d.zip
bug fix
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/BasicStream.cpp2
-rw-r--r--cpp/src/Ice/Endpoint.cpp2
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;