Instead there of terminating null there was a space left by the add_word
function. That also caused wrong concatenation of chained var expansions
/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/21 08:57:54 by ljiriste #+# #+# */
-/* Updated: 2024/07/22 22:29:04 by ljiriste ### ########.fr */
+/* Updated: 2024/07/22 22:54:45 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
return (1);
if (add_word(&advanced_copy, assignment, env))
return (1);
+ *(char *)ft_vec_access(&advanced_copy, advanced_copy.size - 1) = '\0';
copy = advanced_copy.vec;
unquote_field(copy);
clear_old(assignments, copy);