Hello,

there is already a fix for this issue mentioned on the mc bug tracker. See 
ticket https://www.midnight-commander.org/ticket/2813

Attached is the patch from the mc project.




Best,

--------------------------
Michael Hofbauer
Index: src/filemanager/dir.c
===================================================================
--- src/filemanager/dir.c	(revision bd4a696ab6ceb9bd00937667cc523ddd8a94a850)
+++ src/filemanager/dir.c	(revision 28a8b10f1211bd96d7612e4f829f08307392686d)
@@ -525,4 +525,5 @@
     {
         list->list = g_try_realloc (list->list, sizeof (file_entry) * (list->size + RESIZE_STEPS));
+        if (list->list == NULL)
             return -1;
         list->size += RESIZE_STEPS;

Reply via email to