Fix change in ft_split signature.
authorLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:32:16 +0000 (20:32 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:32:16 +0000 (20:32 +0200)
src/execution.c

index f3a95dc6cc251d8227aa0cb33fc4e3d9f7c461bc..bbd0f4e1dd0bcf4549aa1c77378ea4833932457c 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <ljiriste@student.42prague.com>   +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/07/21 08:57:54 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/07/21 20:00:06 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/07/21 20:31:47 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -440,7 +440,7 @@ char        **expand(t_parse_tree_node *simple_command, const t_execution_env *env)
                ft_vec_free(&expanded_str, NULL);
                return (NULL);
        }
-       res = ft_split(expanded_str.vec, ' ');
+       res = ft_split(expanded_str.vec, " ");
        ft_vec_free(&expanded_str, NULL);
        return (res);
 }