aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.c
diff options
context:
space:
mode:
authorChristopher Uhlig2024-08-05 13:44:04 +0200
committerChristopher Uhlig2024-08-05 13:44:04 +0200
commitb0cd3bb37124f19fcf285976d59ae8c0ae262b66 (patch)
tree424433991a753e070ec5e1c250e588a1870c0329 /src/tokenizer.c
parent68af24d0597b06516891199bde4178a2d1552e09 (diff)
downloadminishell-b0cd3bb37124f19fcf285976d59ae8c0ae262b66.tar.gz
minishell-b0cd3bb37124f19fcf285976d59ae8c0ae262b66.zip
update for sanityzer in condiprint
Diffstat (limited to 'src/tokenizer.c')
-rw-r--r--src/tokenizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c
index a2f6fa4..bb76b9e 100644
--- a/src/tokenizer.c
+++ b/src/tokenizer.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/28 20:55:50 by chuhlig #+# #+# */
-/* Updated: 2024/08/05 13:41:54 by chuhlig ### ########.fr */
+/* Updated: 2024/08/05 13:43:39 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -48,7 +48,7 @@ void conditional_print(char *string, int start_of_string, int i,
exit(EXIT_FAILURE);
}
ft_strncpy(line, string + start_of_string, len);
- line[len] = '\0';
+ line[len - 1] = '\0';
while (*line == ' ' || *line == '\t')
line++;
if (*line != '\0')