aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_bsdsetsid.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_bsdsetsid.S')
-rw-r--r--src/c_bsdsetsid.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S
index 55807e1..29eacdc 100644
--- a/src/c_bsdsetsid.S
+++ b/src/c_bsdsetsid.S
@@ -4,7 +4,8 @@
c_main:
movq $0x1, %rdi
xorq %rcx, %rcx
- movq 8(%rsp, %rcx, 8), %rsi
+ inc %rcx
+ movq (%rdx, %rcx, 8), %rsi
movq $0xa, %rdx
movb $0x4, %al
syscall