diff --git a/src/ft_strcpy.s b/src/ft_strcpy.s index de5cd90..305e699 100644 --- a/src/ft_strcpy.s +++ b/src/ft_strcpy.s @@ -7,7 +7,7 @@ ft_strcpy: mov rax, rdi ; dest is the return value cmp rdi, 0 ; check if dest is NULL je .exit ; if true return NULL - cmp rsi, 0 ; check if dest is NULL + cmp rsi, 0 ; check if src is NULL je .exit ; if true return NULL xor ecx, ecx ; index set to 0