From 1105c5c3e7cb945f38fab07d41c6e7fa73327ec8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 5 Aug 2020 20:47:12 +0200 Subject: Quick fix --- src/b_echo.c | 4 ++-- 1 file 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); -- cgit v1.2.3