Browse Source

[mod] heredoc: disable line edition as it make crash: segfault & mfree.

Moul 2 years ago
parent
commit
7dabf72f26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/heredoc.c

+ 1 - 1
src/heredoc.c

@@ -126,7 +126,7 @@ int		here_edition(t_e *h, int heredoc)
 		{
 			ft_putchar(h->key[0]);
 			h->key[ret] = '\0';
-			insert(h);
+			h->cmd = ft_strjoinf(h->cmd, h->key, 1);
 		}
 		if (h->key[0] == 4)
 			return (1);