diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2018-12-26 10:14:29 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-03-13 17:02:26 +0100 |
commit | 45fd62cab4bfc2b8ab2cd5b565d5af0406e96349 (patch) | |
tree | 0ef989b918dc36df79d52ff24c51a1ff52d90e0f /src | |
parent | 2c50f0700ae9f5631b538f4dc2d0797e31985178 (diff) | |
download | calcurse-45fd62cab4bfc2b8ab2cd5b565d5af0406e96349.tar.gz calcurse-45fd62cab4bfc2b8ab2cd5b565d5af0406e96349.zip |
Fix vector_remove()
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |