Commit 411823a3 by Sergey Nikishin

Fix whole buffer writing in fake wstream

parent 7c37aa3a
......@@ -170,7 +170,7 @@ static int fake_wstream__write(git_odb_stream *_stream, const char *data, size_t
{
fake_wstream *stream = (fake_wstream *)_stream;
if (stream->written + len >= stream->size)
if (stream->written + len > stream->size)
return GIT_ENOMEM;
memcpy(stream->buffer + stream->written, data, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment