summaryrefslogtreecommitdiffstats
path: root/web/api/queries/weights.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/queries/weights.c')
-rw-r--r--web/api/queries/weights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/queries/weights.c b/web/api/queries/weights.c
index 451875a557..808434a442 100644
--- a/web/api/queries/weights.c
+++ b/web/api/queries/weights.c
@@ -113,7 +113,7 @@ static void register_result(DICTIONARY *results, RRDHOST *host, RRDCONTEXT_ACQUI
// we can use the pointer address or RMA as a unique key for each metric
char buf[20 + 1];
ssize_t len = snprintfz(buf, sizeof(buf) - 1, "%p", rma);
- dictionary_set_advanced(results, buf, len + 1, &t, sizeof(struct register_result), NULL);
+ dictionary_set_advanced(results, buf, len, &t, sizeof(struct register_result), NULL);
}
// ----------------------------------------------------------------------------