Skip to content

Commit 1d39556

Browse files
committed
Fixed data copying
1 parent feb7d11 commit 1d39556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wazzy/WasiSnapshotPreview1/FileSystem/Implementations/VirtualFileSystem/VirtualFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ private static void CopyFlatBufferToIovsBuffer(ReadOnlySpan<byte> data, Caller c
914914
{
915915
var iov = iovsSpan[i].GetSpan(caller);
916916

917-
if (iov.Length > data.Length)
917+
if (data.Length >= iov.Length)
918918
{
919919
data[..iov.Length].CopyTo(iov);
920920
data = data[iov.Length..];

0 commit comments

Comments
 (0)