-dump_category(int level, int *indexes, int *n_indexes)
+dump_category(int level, int *indexes, int *n_indexes, int max_indexes)
fprintf (stdout, "<category-index>%d</category-index>\n", indx);
}
for (int i = 0; i < n_categories; i++)
fprintf (stdout, "<category-index>%d</category-index>\n", indx);
}
for (int i = 0; i < n_categories; i++)
- dump_category (level + 1, indexes, n_indexes);
+ dump_category (level + 1, indexes, n_indexes, max_indexes);
printf ("<dimension index=\"%d\">\n", indx);
dump_value (stdout, 0, false);
printf ("<dimension index=\"%d\">\n", indx);
dump_value (stdout, 0, false);
- dump_category (0, indexes, &n_indexes);
+ dump_category (0, indexes, &n_indexes, sizeof indexes / sizeof *indexes);
check_permutation(indexes, n_indexes, "categories");
fprintf (stdout, "</dimension>\n");
check_permutation(indexes, n_indexes, "categories");
fprintf (stdout, "</dimension>\n");
dump_value(stdout, 1, false);
fprintf (stdout, " </datum>\n");
}
dump_value(stdout, 1, false);
fprintf (stdout, " </datum>\n");
}