diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-21 18:04:55 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-21 18:04:55 +0200 |
commit | 7ce0203226e008933decc7c3707c0c2285234e74 (patch) | |
tree | b5627bb4adf37da5aed7068ce513df820f3f667e /src | |
parent | 486b4d168a688f5415c5d4223e834a7f3255d966 (diff) |
resources: Fix /process/create executable buffer length not being expanded after initial resource read
It is now possible to start other programs successfully.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/resources.zig | 6 |
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); |