shithub: mc

Download patch

ref: 1600ea3f806c5d4ce9f6e1d73abf7b48ef43a2c0
parent: 188127af82ebd9fbd729419c525ba459d3a779f4
author: Ori Bernstein <[email protected]>
date: Fri Jul 27 16:20:26 EDT 2012

Fix 'ldel' function.

    It was moving lists, not list elements.

--- a/parse/util.c
+++ b/parse/util.c
@@ -152,7 +152,7 @@
     assert(idx < *len);
     pl = l;
     for (i = idx; i < *len - 1; i++)
-	pl[i] = pl[i + 1];
+	pl[0][i] = pl[0][i + 1];
     (*len)--;
     *pl = xrealloc(*pl, *len * sizeof(void*));
 }