Commit daa40df5 authored by Marc Gravell's avatar Marc Gravell

fix writing of message (forgot to increment offset)

parent 86949f20
......@@ -637,7 +637,8 @@ private static int WriteUnified(Span<byte> span, byte[] value, int offset = 0)
else
{
offset = WriteRaw(span, value.Length, offset: offset);
new ReadOnlySpan<byte>(value).CopyTo(span.Slice(offset));
new ReadOnlySpan<byte>(value).CopyTo(span.Slice(offset, value.Length));
offset += value.Length;
offset = WriteCrlf(span, offset);
}
return offset;
......
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