aboutsummaryrefslogtreecommitdiff
path: root/ft_strdup.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strdup.s')
-rw-r--r--ft_strdup.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft_strdup.s b/ft_strdup.s
index 09ae2ba..7de9077 100644
--- a/ft_strdup.s
+++ b/ft_strdup.s
@@ -15,7 +15,7 @@
%define M_FT_STRDUP ft_strdup
%define M_FT_STRLEN ft_strlen
%define M_FT_STRCPY ft_strcpy
- %define M_MALLOC malloc
+ %define M_MALLOC malloc wrt ..plt
%else
%define M_FT_STRDUP _ft_strdup
%define M_FT_STRLEN _ft_strlen
@@ -38,7 +38,7 @@ M_FT_STRDUP:
inc rax ; len++ for '\0'
mov rdi, rax ; size to malloc
- call M_MALLOC wrt ..plt
+ call M_MALLOC
cmp rax, 0
je FT_STRDUP_ERROR