From 670e296bee4082214c8ae4e956bdcc41e1260234 Mon Sep 17 00:00:00 2001 From: salad Date: Sat, 29 Aug 2020 19:47:08 +0200 Subject: no more SEGV on e_externs_pipes if prog member is nonsense --- src/c_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c_init.c') diff --git a/src/c_init.c b/src/c_init.c index c5fc319..63e9e07 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -39,7 +39,7 @@ void c_process_key(t_caps *tcaps) { while ((bread = read(STDIN_FILENO, nread, sizeof(nread)) != 1)) { if (bread == -1) { - ft_printf("error on read"); + printf("error on read"); return ; } } -- cgit v1.2.3