Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 0ed64bd

Browse files
committed
1 parent 371b2ad commit 0ed64bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Task WriteAsync(
5252
if (buffer.Array != null)
5353
{
5454
var copy = new byte[buffer.Count];
55-
Array.Copy(buffer.Array, buffer.Offset, copy, 0, buffer.Count);
55+
Buffer.BlockCopy(buffer.Array, buffer.Offset, copy, 0, buffer.Count);
5656
buffer = new ArraySegment<byte>(copy);
5757
_log.ConnectionWrite(_connectionId, buffer.Count);
5858
}

0 commit comments

Comments
 (0)