(elem_insert): fix a off by one index counter
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12628 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -105,7 +105,7 @@ elem_insert(struct gss_msg_order *o, | ||||
|  | ||||
|     if (o->length > after_slot) | ||||
| 	memmove(&o->elem[after_slot + 1], &o->elem[after_slot], | ||||
| 		(o->length - after_slot) * sizeof(o->elem[0])); | ||||
| 		(o->length - after_slot - 1) * sizeof(o->elem[0])); | ||||
|  | ||||
|     elem_set(o, after_slot, seq_num); | ||||
|  | ||||
|   | ||||
| @@ -105,7 +105,7 @@ elem_insert(struct gss_msg_order *o, | ||||
|  | ||||
|     if (o->length > after_slot) | ||||
| 	memmove(&o->elem[after_slot + 1], &o->elem[after_slot], | ||||
| 		(o->length - after_slot) * sizeof(o->elem[0])); | ||||
| 		(o->length - after_slot - 1) * sizeof(o->elem[0])); | ||||
|  | ||||
|     elem_set(o, after_slot, seq_num); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand