summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 1d6564cb962..afec1889071 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -4322,7 +4322,7 @@ fill_layout_info (dht_layout_t *layout, char *buf)
char tmp_buf[128] = {0,};
for (i = 0; i < layout->cnt; i++) {
- snprintf (tmp_buf, 128, "(%s %u %u)",
+ snprintf (tmp_buf, sizeof (tmp_buf), "(%s %u %u)",
layout->list[i].xlator->name,
layout->list[i].start,
layout->list[i].stop);