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;