summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_utils.c')
-rw-r--r--src/c_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index fa2eaaf..73d5a3e 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -35,7 +35,7 @@ char
if (line != NULL)
{
ret = ft_strdup(line);
- line[0] = '\0';
+ ft_memdel((void*)&line);
}
tcaps->cpos = 0;
tputs(tgetstr("cr", NULL), 1, ft_putchar);
@@ -44,6 +44,7 @@ char
{
write(1, "\n", 1);
}
+ /* ft_printf("[%s][%s]\n", ret, line); */
return (ret);
}