summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/mc/files/mc-4.7.3_advanced_chown_segfault_fix.patch')
-rw-r--r--app-misc/mc/files/mc-4.7.3_advanced_chown_segfault_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.7.3_advanced_chown_segfault_fix.patch b/app-misc/mc/files/mc-4.7.3_advanced_chown_segfault_fix.patch
new file mode 100644
index 000000000000..7def57036b53
--- /dev/null
+++ b/app-misc/mc/files/mc-4.7.3_advanced_chown_segfault_fix.patch
@@ -0,0 +1,11 @@
+Index: src/achown.c
+===================================================================
+--- src/achown.c (revision 74651f2e9f112eacc07ed9d1281e27ce6a4be9d4)
++++ src/achown.c (revision ce12059b0e7c7df3b7a1ebc908d48e4eb3b454e5)
+@@ -499,5 +499,5 @@
+ break;
+ flag_pos = f_pos * 3 + i; /* (strchr(ch_perm,parm)-ch_perm); */
+- if (((WButton *) h->current)->text.start[(flag_pos % 3)] ==
++ if (((WButton *) h->current->data)->text.start[(flag_pos % 3)] ==
+ '-')
+ ch_flags[flag_pos] = '+';