diff --git a/cluster_config.c b/cluster_config.c index b0d08879..476e28d5 100644 --- a/cluster_config.c +++ b/cluster_config.c @@ -132,7 +132,7 @@ static int compare_cont_item(const void *t1, const void *t2) static int gen_node_continuum(struct cont_item *continuum, const char *node_name) { - char buffer[MAX_NODE_NAME_LENGTH+1] = ""; + char buffer[MAX_NODE_NAME_LENGTH+4] = ""; int length; unsigned int hh, nn, pp; unsigned char digest[16]; @@ -140,7 +140,7 @@ static int gen_node_continuum(struct cont_item *continuum, const char *node_name pp = 0; for (hh=0; hh