From 45fd62cab4bfc2b8ab2cd5b565d5af0406e96349 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Wed, 26 Dec 2018 10:14:29 +0100 Subject: Fix vector_remove() Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vector.c b/src/vector.c index bce070e..5ea893a 100644 --- a/src/vector.c +++ b/src/vector.c @@ -124,5 +124,5 @@ void vector_remove(vector_t *v, unsigned n) v->count--; for (i = n; i < v->count; i++) - v->data[i + 1] = v->data[i]; + v->data[i] = v->data[i + 1]; } -- cgit v1.2.3-70-g09d2