We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8076690 commit 1b4c56cCopy full SHA for 1b4c56c
src/lib/support/BufferWriter.cpp
@@ -30,7 +30,7 @@ BufferWriter & BufferWriter::Put(const void * buf, size_t len)
30
{
31
size_t available = Available();
32
33
- if (available > 0)
+ if (available > 0 && len > 0)
34
35
memmove(mBuf + mNeeded, buf, available < len ? available : len);
36
}
0 commit comments