diff --git a/src/buffer.h b/src/buffer.h index 002f1986..234f6770 100755 --- a/src/buffer.h +++ b/src/buffer.h @@ -271,11 +271,8 @@ public: else { // data can be read in one step - const std::vector::const_iterator ItMemoryGetPos = - vecMemory.begin() + iGetPos; - - std::copy ( ItMemoryGetPos, - ItMemoryGetPos + iInSize, + std::copy ( vecMemory.begin() + iGetPos, + vecMemory.begin() + iGetPos + iInSize, vecData.begin() ); // set the get position one block further (no wrap around needs