Commit b45a641a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix off-by-one error in dump_tables.

parent 1486108f
......@@ -961,7 +961,7 @@ dump_tables(FILE *out)
for(k = 0; k < DIVERSITY_HOPS; k++) {
if(routes[i].channels[k] == 0)
break;
if(k > 1)
if(k > 0)
channels[j++] = ',';
snprintf(channels + j, 100 - j, "%d", routes[i].channels[k]);
j = strlen(channels);
......
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