From f6cc429d6152f330de5d4aac36fea9810f9f47de Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 18 Dec 2020 14:36:31 +0100 Subject: mergethis --- src/c_ctrls.c | 1 - src/c_init.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/c_ctrls.c b/src/c_ctrls.c index 0bea322..af0528e 100644 --- a/src/c_ctrls.c +++ b/src/c_ctrls.c @@ -66,7 +66,6 @@ void c_signal_int(int signo) write(1, "\n", 1); msh = c_get_msh(0, msh); msh->sig = 130; - ioctl(1, TIOCSTI, "\002"); } void c_signal_ign(int signo) diff --git a/src/c_init.c b/src/c_init.c index 1659f3f..c3c6421 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -157,9 +157,9 @@ short msh->sig = 0; tcaps.plen = (unsigned int)m_plen(msh->ps[psx - 1]); *line = NULL; - if (*line == NULL) - if (!(*line = ft_calloc(sizeof(char), 1))) - return (-1); + if (!(*line = ft_calloc(sizeof(char), 1))) + return (-1); + ft_printf("[%p]\n\r", (void*)*line); if (!(c_get_win_size(&tcaps.ws))) return (-1); while (!(ft_strchr(nread, '\n'))) -- cgit v1.2.3