/[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.2 - (show annotations) (download)
Fri Jan 11 11:38:42 2013 UTC (20 months, 1 week ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Fixed handling of external programs with xdg USE flag being unset (bug #449936). Removed old versions. Added myself as maintainer

(Portage version: 2.2.0_alpha150/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

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