From 3b380a5fd9eb80873ca9b1487d1641fdf152c6f0 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Fri, 29 Dec 2017 22:51:10 +0100 Subject: [PATCH] correct remove function --- src/storage/datastorage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index e9636e3..220a799 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -547,7 +547,7 @@ client *client_array_delete(client entry) { } } - for (int j = i; j <= client_entry_last; j++) { + for (int j = i; j < client_entry_last; j++) { client_array[j] = client_array[j + 1]; }