mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
Change copy to a .len +=
This commit is contained in:
@@ -470,7 +470,7 @@ const PosixBufferedReader = struct {
|
||||
.result => |bytes_read| {
|
||||
if (parent.maxbuf) |l| l.onReadBytes(bytes_read);
|
||||
parent._offset += bytes_read;
|
||||
resizable_buffer.appendSlice(buf[0..bytes_read]) catch bun.outOfMemory();
|
||||
resizable_buffer.items.len += bytes_read;
|
||||
|
||||
if (bytes_read == 0) {
|
||||
parent.closeWithoutReporting();
|
||||
|
||||
Reference in New Issue
Block a user