Update of /cvsroot/simplemail/simplemail
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22313
Modified Files:
index_external.c
Log Message:
Fixed problem that we did not move the right amount of elements in the insert sort phase.
Index: index_external.c
===================================================================
RCS file: /cvsroot/simplemail/simplemail/index_external.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- index_external.c 19 Jan 2014 18:29:38 -0000 1.8
+++ index_external.c 19 Jan 2014 18:30:10 -0000 1.9
@@ -287,7 +287,7 @@
* insert the entry now */
struct bnode_element *e = bnode_get_ith_element_of_node(idx, tmp, i);
- memmove(e + 1, e, (idx->max_elements_per_node - tmp->num_elements - 1) * sizeof(struct bnode_element));
+ memmove(e + 1, e, (tmp->num_elements - i) * sizeof(struct bnode_element));
/* New element */
e->str_offset = offset;
|