X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fgmond.c;h=03dedcca606249c7b771f7511dd75f5c8a427a9a;hp=b14dee3bfae852c7a57d72a044718e0d48e6c4c2;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=c4439c9cb3e2348ad7013644731de27a55eca478 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);