X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fgmond.c;h=03dedcca606249c7b771f7511dd75f5c8a427a9a;hp=b14dee3bfae852c7a57d72a044718e0d48e6c4c2;hb=d931e9e904f61e28013c01ee6903985d3c9f0ba8;hpb=87f8f66a84e78fd37dd2767c032ce74924d31dfd diff --git a/src/gmond.c b/src/gmond.c index b14dee3b..03dedcca 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -397,8 +397,8 @@ static staging_entry_t *staging_entry_get(const char *host, /* {{{ */ if (staging_tree == NULL) return NULL; - snprintf(key, sizeof(key), "%s/%s/%s", host, type, - (type_instance != NULL) ? type_instance : ""); + ssnprintf(key, sizeof(key), "%s/%s/%s", host, type, + (type_instance != NULL) ? type_instance : ""); se = NULL; status = c_avl_get(staging_tree, key, (void *)&se);