From 42aa32df3f63d4dd1213b0683ab7110d788defef Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 9 Sep 2020 18:29:25 +0200 Subject: The more memory the better LOL --- src/p_lblock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/p_lblock.c') diff --git a/src/p_lblock.c b/src/p_lblock.c index 856a546..377757d 100644 --- a/src/p_lblock.c +++ b/src/p_lblock.c @@ -133,13 +133,13 @@ int8_t i = 0; nextif = 0; - if ((words = p_split_line(line)) == NULL) + if ((words = p_split_line((char*)line)) == NULL) return (-1); while (words[i] != NULL) { - if (words[i][ft_strlen(words[i]) - 1] == ';') + if (words[i][ft_strlen(words[i]) - 1] == '0') nextif = 0; - else if (words[i][ft_strlen(words[i]) - 1] == '&') + else if (words[i][ft_strlen(words[i]) - 1] == '1') nextif = 1; else nextif = 2; -- cgit v1.2.3