diff --git a/src/ChangeLog b/src/ChangeLog index b11b9a5ca..78d271f28 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +1999-01-31 Federico Mena Quintero + + * file.c (panel_operate_generate_prompt): Removed the cmd_buf + argument, since it is a global variable anyway (this function is + only called once from file.c, and the global cmd_buf was being + passed in). + (panel_operate): Do not pass cmd_buf to + panel_operate_generate_prompt(). + Thanks to Alexander Savelyev for noticing this. + 1999-01-30 Miguel de Icaza * achown.c (XTRACT): Add missing call to _(). diff --git a/src/file.c b/src/file.c index d5526758a..1460a9c4f 100644 --- a/src/file.c +++ b/src/file.c @@ -1622,7 +1622,7 @@ static char* prompt_parts [] = }; static char * -panel_operate_generate_prompt (char* cmd_buf, WPanel* panel, int operation, int only_one, +panel_operate_generate_prompt (WPanel* panel, int operation, int only_one, struct stat* src_stat) { register char *sp, *cp; @@ -1777,7 +1777,7 @@ panel_operate (void *source_panel, FileOperation operation, char *thedefault, in } /* Generate confirmation prompt */ - source = panel_operate_generate_prompt (cmd_buf, panel, operation, only_one, &src_stat); + source = panel_operate_generate_prompt (panel, operation, only_one, &src_stat); /* Show confirmation dialog */ if (operation == OP_DELETE && confirm_delete){