aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/resources.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/resources.zig b/src/lib/resources.zig
index 004b82a..e02e96c 100644
--- a/src/lib/resources.zig
+++ b/src/lib/resources.zig
@@ -121,6 +121,9 @@ const processfs = struct {
.hookFn = loadExe,
.context = ctx,
});
+
+ ctx.buffer.items.len += n;
+
while (n > 0) {
try buffer.ensureUnusedCapacity(4096);
@@ -182,6 +185,9 @@ const processfs = struct {
.hookFn = loadExe,
.context = ctx,
});
+
+ ctx.buffer.items.len += n;
+
while (n2 > 0) {
try ctx.buffer.ensureUnusedCapacity(4096);