Commit 7c272f7a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in flush_route (caused a crash).

parent c81e7e45
...@@ -216,7 +216,7 @@ flush_route(struct route *route) ...@@ -216,7 +216,7 @@ flush_route(struct route *route)
if(routes[i] == NULL) { if(routes[i] == NULL) {
if(i < route_slots - 1) if(i < route_slots - 1)
memmove(routes + i + 1, routes + i, memmove(routes + i, routes + i + 1,
(route_slots - i - 1) * sizeof(struct route*)); (route_slots - i - 1) * sizeof(struct route*));
routes[route_slots - 1] = NULL; routes[route_slots - 1] = NULL;
route_slots--; route_slots--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment