/[gentoo-x86]/app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch
Gentoo

Contents of /app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jul 30 13:00:36 2012 UTC (2 years ago) by polynomial-c
Branch: MAIN
Fixed bug #427786 and bug #428568

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 polynomial-c 1.1 https://www.midnight-commander.org/ticket/2858
2     https://www.midnight-commander.org/changeset/e2f30017a04b5dc557f9d8dd2e281526eba3c97f
3    
4     Index: src/filemanager/usermenu.c
5     ===================================================================
6     --- src/filemanager/usermenu.c (revision 409e8ab5fd4c42fd122d42d3d13a455eb6aba96f)
7     +++ src/filemanager/usermenu.c (revision e2f30017a04b5dc557f9d8dd2e281526eba3c97f)
8     @@ -749,6 +749,7 @@
9     return g_strdup ("%");
10    
11     - if (mc_global.mc_run_mode == MC_RUN_FULL)
12     - {
13     + switch (mc_global.mc_run_mode)
14     + {
15     + case MC_RUN_FULL:
16     if (g_ascii_islower ((gchar) c))
17     panel = current_panel;
18     @@ -760,9 +761,16 @@
19     }
20     fname = g_strdup (panel->dir.list[panel->selected].fname);
21     - }
22     + break;
23     +
24     #ifdef USE_INTERNAL_EDIT
25     - else if (mc_global.mc_run_mode == MC_RUN_EDITOR)
26     + case MC_RUN_EDITOR:
27     fname = edit_get_file_name (edit_widget);
28     + break;
29     #endif
30     +
31     + default:
32     + /* other modes don't use formats */
33     + return g_strdup ("");
34     + }
35    
36     if (do_quote)

  ViewVC Help
Powered by ViewVC 1.1.20