summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/c_wrap_linux.tnsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/c_wrap_linux.tnsl b/internal/c_wrap_linux.tnsl
index 6c3f27e..eb16a9a 100644
--- a/internal/c_wrap_linux.tnsl
+++ b/internal/c_wrap_linux.tnsl
@@ -261,9 +261,8 @@ asm "extern malloc, realloc, free, printf, putchar, open, close, read, write, ls
asm "sub rsp, 128"
# Call libc
- asm "mov rdi, r10" # handle
+ asm "mov rdi, r10" # path name
asm "mov rsi, 0" # resolved_path
- asm "mov rdx, 1" # one byte
asm "call realpath wrt ..plt"
asm "mov r11, rax"