Commit 1291b335 authored by Chen Wei's avatar Chen Wei

fix string array size for check_server print

parent 8d71fdcd
...@@ -1422,7 +1422,7 @@ void check_servers(void) ...@@ -1422,7 +1422,7 @@ void check_servers(void)
if (!option_bool(OPT_NOWILD)) if (!option_bool(OPT_NOWILD))
enumerate_interfaces(0); enumerate_interfaces(0);
char *levels[MAXLABELS]; char *levels[MAXLABELS + 1]; /* the root node starts at 1 */
struct dict_node *root = daemon->dh_special_domains; struct dict_node *root = daemon->dh_special_domains;
print_server_special_domains(root, levels, 0); print_server_special_domains(root, levels, 0);
......
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