Skip to content

Commit 77d09fe

Browse files
bmourad01bmourad01
andauthored
Fix alloc size when passing --run-env (#1557)
Co-authored-by: bmourad01 <[email protected]>
1 parent 6de4009 commit 77d09fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/primus_loader/primus_loader_basic.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module Make(Param : Param)(Machine : Primus.Machine.S) = struct
168168
let total_size =
169169
bytes_in_addr + (* argc *)
170170
table_size argv + table_size envp +
171-
frame_size argv + table_size envp in
171+
frame_size argv + frame_size envp in
172172
let argv_frame_ptr =
173173
bytes_in_addr +
174174
table_size argv + table_size envp |>

0 commit comments

Comments
 (0)