diff --git a/src/add-ons/kernel/file_systems/bfs/Utility.cpp b/src/add-ons/kernel/file_systems/bfs/Utility.cpp index 452ee68fa3..50e33ba29c 100644 --- a/src/add-ons/kernel/file_systems/bfs/Utility.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Utility.cpp @@ -60,8 +60,8 @@ sorted_array::Remove(off_t value) if (index == -1) return false; - memmove(&values[index], &values[index + 1], (count - index) * sizeof(off_t)); count--; + memmove(&values[index], &values[index + 1], (count - index) * sizeof(off_t)); return true; }