mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
fixed GH #1431: Poco/FIFOBuffer.h copy issue
This commit is contained in:
parent
737bd98b17
commit
cdb2195ed3
@ -325,7 +325,7 @@ public:
|
|||||||
if (!isWritable())
|
if (!isWritable())
|
||||||
throw Poco::InvalidAccessException("Buffer not writable.");
|
throw Poco::InvalidAccessException("Buffer not writable.");
|
||||||
|
|
||||||
std::memcpy(&_buffer[_used], ptr, length * sizeof(T));
|
std::memcpy(begin() + _used, ptr, length * sizeof(T));
|
||||||
std::size_t usedBefore = _used;
|
std::size_t usedBefore = _used;
|
||||||
_used += length;
|
_used += length;
|
||||||
if (_notify) notify(usedBefore);
|
if (_notify) notify(usedBefore);
|
||||||
|
Loading…
Reference in New Issue
Block a user