diff options
author | Benoit Foucher <benoit@zeroc.com> | 2003-04-11 01:48:01 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2003-04-11 01:48:01 +0000 |
commit | 99556ab4aff51baa3feb01e1c66a38cd160508f4 (patch) | |
tree | 1a2c1622d55a42c678be22ec87b0c59fe7ba2d93 /cpp/src/Ice/BasicStream.cpp | |
parent | Fix (diff) | |
download | ice-99556ab4aff51baa3feb01e1c66a38cd160508f4.tar.bz2 ice-99556ab4aff51baa3feb01e1c66a38cd160508f4.tar.xz ice-99556ab4aff51baa3feb01e1c66a38cd160508f4.zip |
Fixed ice_copy for bytes
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 416af7e2edf..8c3b7b72869 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -36,7 +36,10 @@ void ice_copy(std::vector<Ice::Byte>::const_iterator first, std::vector<Ice::Byte>::const_iterator last, std::vector<Ice::Byte>::iterator result) { - memcpy(&*result, &*first, last - first); + if(last != first) + { + memcpy(&*result, &*first, last - first); + } } using namespace std; |