diff options
| author | nass1pro <nass1pro@gmail.com> | 2020-07-14 09:59:47 +0200 |
|---|---|---|
| committer | nass1pro <nass1pro@gmail.com> | 2020-07-14 09:59:47 +0200 |
| commit | 3ea9f3e7e9b40c8e0b17ab394576c82f7b92c0b4 (patch) | |
| tree | 6ec7d179aeddc96a470148336947979c4010b2ec /src/parse/parse_error.c | |
| parent | 4ad25e7fe330df66725bf74a662a49bcd31b8a8a (diff) | |
| download | minishell-3ea9f3e7e9b40c8e0b17ab394576c82f7b92c0b4.tar.gz minishell-3ea9f3e7e9b40c8e0b17ab394576c82f7b92c0b4.tar.bz2 minishell-3ea9f3e7e9b40c8e0b17ab394576c82f7b92c0b4.zip | |
uptdate error
Diffstat (limited to 'src/parse/parse_error.c')
| -rw-r--r-- | src/parse/parse_error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse/parse_error.c b/src/parse/parse_error.c index e48eda2..b63715d 100644 --- a/src/parse/parse_error.c +++ b/src/parse/parse_error.c @@ -6,7 +6,7 @@ /* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/18 15:09:48 by nahaddac #+# #+# */ -/* Updated: 2020/07/13 14:30:39 by nahaddac ### ########.fr */ +/* Updated: 2020/07/14 09:43:35 by nahaddac ### ########.fr */ /* */ /* ************************************************************************** */ @@ -81,15 +81,15 @@ t_token *error_syntax_simple(t_ftlst *in) tk = in->next->data; i = ft_strlen(tk->content); if (i >= 3) - tk->content[3] = '\0'; + tk->content[2] = '\0'; tk->content = ft_strjoin3("minishell: syntax error near unexpected token `", tk->content, "'"); + printf("%s\n",tk->content ); return(tk); } } in = in->next; } - return first; - + return 0; } |
