Ticket #1982: Segfault while opening gzip archive
commitcd9e93b2d10be1c3f996df94b911ad7b4f81b351
authorSlava Zanko <slavazanko@gmail.com>
Fri, 29 Jan 2010 08:23:33 +0000 (29 10:23 +0200)
committerSlava Zanko <slavazanko@gmail.com>
Fri, 29 Jan 2010 16:05:03 +0000 (29 18:05 +0200)
treeaa703a219297cf5794c247e93f6a69e3dba1027e
parentdae59972d14d3decfc4f718d22bf8ffc0f8b7c22
Ticket #1982: Segfault while opening gzip archive

1. touch /tmp/IzV-Útěk_do_bezpečí.gz
2. open mc
3. move cursor at /tmp/IzV-Útěk_do_bezpečí.gz
4. press F4
5. you will see an error message, press Dismiss
6. segfault

Fix issue: length of command line string for pipeing  now calculated
automatically (via g_strdup_printf()) rathen than calculating via
str_term_width1() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/editor/edit.c