mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 09:20:29 +00:00
Set flags correctly
This commit is contained in:
parent
d259b4aba2
commit
7aef5c786a
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ EXTERN_C __attribute__((__noreturn__)) void ApeLoader(long di, long *sp,
|
|||
os = NETBSD;
|
||||
} else if (ap[0] == AT_FLAGS) {
|
||||
// TODO(mrdomino): does anyone use auxv 8 for anything else?
|
||||
flags = ap + 1;
|
||||
flags = ap;
|
||||
arg0 = !!(ap[1] & AT_FLAGS_PRESERVE_ARGV0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue