summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/b_echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b_echo.c b/src/b_echo.c
index 7b998d7..ec66049 100644
--- a/src/b_echo.c
+++ b/src/b_echo.c
@@ -93,7 +93,7 @@ uint8_t
str = e_initb(ptr, str);
if (argc >= 1)
{
- if (ft_strncmp(ptr[0], "-n", 2) == 0)
+ if (ft_strncmp(ptr[0], "-n", 3) == 0)
{
nopt = 1;
ptr += 1;
@@ -109,7 +109,7 @@ uint8_t
}
}
}
- free(str);
+ ft_memdel((void*)&str);
if (nopt == 0)
ft_printf("\n");
return (0);