ref: a6dba3024d23330b32c8ebab7ac6cb78a0c09b1f
parent: b0d94f7837667c2a95596db88df458bdd3388224
author: Ori Bernstein <[email protected]>
date: Sat Jan 26 19:09:05 EST 2013
Fix offsets when moving block in ldel(). Thought I already did this.
--- a/parse/util.c
+++ b/parse/util.c
@@ -148,7 +148,7 @@
assert(idx < *len);
pl = p;
l = *pl;
- memmove(&l[idx - 1], &l[idx], (*len - idx)*sizeof(void*));
+ memmove(&l[idx], &l[idx + 1], (*len - idx - 1)*sizeof(void*));
(*len)--;
*pl = xrealloc(l, *len * sizeof(void*));
}