hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 80531041b0d720b29bdf990be427cab408b4f007
parent f5d453989157b6a2674f77edcd78bd18e3027bc3
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  2 Mar 2021 15:06:51 -0500

rt+linux: fix envp initialization

Diffstat:
Mrt/+linux/start.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/+linux/start.ha b/rt/+linux/start.ha @@ -2,6 +2,6 @@ export @noreturn fn start_linux(iv: *[*]uintptr) void = { // TODO: Find & parse auxv argc = iv[0]: size; argv = &iv[1]: *[*]*char; - envp = &iv[1 + argc * size(*char) + 1]: *[*]nullable *char; + envp = &argv[argc + 1]: *[*]nullable *char; start_ha(); };