From b7165df43f5d417200775f55b7457318588d5145 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Sun, 11 Jun 2017 02:42:33 +0200 Subject: [PATCH] AH ! --- fish_shell/fish_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fish_shell/fish_core.c b/fish_shell/fish_core.c index 603db35..a520158 100644 --- a/fish_shell/fish_core.c +++ b/fish_shell/fish_core.c @@ -15,12 +15,11 @@ pipe_redirection * getRedirection(){ static pipe_redirection * redirection = NULL; - static char template[] = "/tmp/fishXXXXXX"; if (redirection == NULL){ redirection = (pipe_redirection*) malloc(sizeof(pipe_redirection)); if (redirection == NULL) crash(); - redirection->file_name = strdup((char*) template); + redirection->file_name = strdup((char*) "/tmp/fishXXXXXX"); redirection->tmp_file = mkstemp(redirection->file_name); redirection->to_use = 0; redirection->read = 0;