From 97d5c24662448bd1409571ced27d6fb1f6fe73a4 Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 26 Apr 2024 19:00:57 +0200 Subject: [PATCH] yes --- srcs/parsing_var.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/parsing_var.c b/srcs/parsing_var.c index 386ef5e..1b4ed37 100755 --- a/srcs/parsing_var.c +++ b/srcs/parsing_var.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/09 15:24:36 by tomoron #+# #+# */ -/* Updated: 2024/04/24 17:59:47 by tomoron ### ########.fr */ +/* Updated: 2024/04/26 18:58:42 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -104,5 +104,5 @@ int add_var_to_str(char *res, char **command, t_env *env, int *is_var) while (var && var[i++]) res[i - 1] = var[i - 1]; *command += get_var_name_len(*command) - 1; - return (i - 1); + return (i - (1 - (i == 0))); }