mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 11:48:54 +01:00
fixed GH #1431: Poco/FIFOBuffer.h copy issue
This commit is contained in:
parent
29010bc6ad
commit
b02d8cecdb
@ -325,7 +325,7 @@ public:
|
||||
if (!isWritable())
|
||||
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;
|
||||
_used += length;
|
||||
if (_notify) notify(usedBefore);
|
||||
|
Loading…
Reference in New Issue
Block a user