mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +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())
|
||||
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