This commit is contained in:
Antoine Bartuccio 2017-06-11 02:21:09 +02:00
parent de18074b89
commit c0e130cb71
1 changed files with 1 additions and 1 deletions

View File

@ -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;