From 41c35f97bec246b85fabe54e65a086d179d4fed3 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Fri, 8 Nov 2019 14:55:49 +0100 Subject: STDIN corrected --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 372e04f..3237496 100644 --- a/src/main.c +++ b/src/main.c @@ -38,7 +38,7 @@ int if (!(arg = (char*)ft_calloc(129, sizeof(char)))) return (1); i = 0; - while (read(1, &c, 1) > 0) + while (read(STDIN_FILENO, &c, 1) > 0) { if (c == '\n') break ; -- cgit v1.2.3