From 9bf0201d9a9b01d4f46090ac835a40c3eecc79e7 Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 11 Dec 2020 18:34:08 +0100 Subject: something works --- src/c_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c_utils.c') diff --git a/src/c_utils.c b/src/c_utils.c index 73d5a3e..2414638 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -35,7 +35,7 @@ char if (line != NULL) { ret = ft_strdup(line); - ft_memdel((void*)&line); + line[0] = '\0'; } tcaps->cpos = 0; tputs(tgetstr("cr", NULL), 1, ft_putchar); -- cgit v1.2.3