Set rax to original rdi in strcat() (make sure dest pointer is returned)

This commit is contained in:
2025-06-23 15:35:41 +02:00
parent 0ee1142b75
commit ed83e83885

View File

@ -52,9 +52,13 @@ strcat:
push rbp
mov rbp, rsp
push rdi
sub rsp, 8
call strlen
add rdi, rax
call strcpy
add rsp, 8
pop rax
leave
ret