crash fix

This commit is contained in:
Nathan Lebrun
2025-02-06 10:04:26 +01:00
parent e183b95354
commit 22c2f9ba02
3 changed files with 26 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ char *ft_tabstr(char **tab)
while (tab[++i])
alloc_count += ft_strlen(tab[i]) + 1;
i = 0;
out = tab[0];
out = ft_strdup(tab[0]);
while (tab[++i])
{
tmp = out;