yes
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user