From e3b2eb08529900555b53aa3078eafd6717523b3d Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 11 Sep 2024 20:40:52 +0200 Subject: [PATCH] fix: strdup: add 1 to \0 --- src/ft_strdup.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ft_strdup.asm b/src/ft_strdup.asm index 4dd09f1..642de6f 100644 --- a/src/ft_strdup.asm +++ b/src/ft_strdup.asm @@ -11,6 +11,7 @@ section .text mov rbx, rdi mov rdi, rax + add rdi, 1 call malloc wrt ..plt