Ticket #2236: mcview segfaults trying open a compressed man page file.

How to reproduce:

mcview /usr/share/man/man1/bash.1.gz

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-06-09 21:42:08 +04:00
parent 044b9eca12
commit 03513734c7
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ expand_format (struct WEdit *edit_widget, char c, gboolean do_quote)
fname = panel->dir.list[panel->selected].fname;
}
#ifdef USE_INTERNAL_EDIT
else
else if (mc_run_mode == MC_RUN_EDITOR)
fname = str_unconst (edit_get_file_name (edit_widget));
#endif