Set rax to original rdi in strcat() (make sure dest pointer is returned)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user