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