From c0e130cb71c6da481f0fec039a21f2508806a360 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Sun, 11 Jun 2017 02:21:09 +0200 Subject: [PATCH] C++ NAZI --- fish_shell/fish_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_shell/fish_core.c b/fish_shell/fish_core.c index 1e9a1f7..603db35 100644 --- a/fish_shell/fish_core.c +++ b/fish_shell/fish_core.c @@ -20,7 +20,7 @@ pipe_redirection * getRedirection(){ if (redirection == NULL){ redirection = (pipe_redirection*) malloc(sizeof(pipe_redirection)); if (redirection == NULL) crash(); - redirection->file_name = strdup(template); + redirection->file_name = strdup((char*) template); redirection->tmp_file = mkstemp(redirection->file_name); redirection->to_use = 0; redirection->read = 0;