From 45d3ad71ea69e18b27eb3fa202429e0b73a3826b Mon Sep 17 00:00:00 2001 From: salad Date: Tue, 15 Dec 2020 17:02:34 +0100 Subject: norm and fix ctrl_c to fit c_gnl rewrite --- src/c_ctrls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/c_ctrls.c') diff --git a/src/c_ctrls.c b/src/c_ctrls.c index dcb51de..9431f72 100644 --- a/src/c_ctrls.c +++ b/src/c_ctrls.c @@ -44,7 +44,8 @@ char *c_ctrl_c(char **line, char *buf, t_msh *msh) buf[0] = '\n'; write(1, "\n", 1); ft_memdel((void**)line); - return (ft_strdup("\0")); + *line = ft_strdup("\0"); + return (NULL); } void c_signal_int(int signo) -- cgit v1.2.3