X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=8d3dafa7ed3e6382f19c88d726cdfc7665ad382d;hb=06d8ab31ff97b30d601e8f8a942bedc339825042;hp=65b450c988fd6249ebe7b4131b5fd6ef1714f9c6;hpb=164e3aed7d737055ac7aa2d0cc9981247f32a491;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index 65b450c9..8d3dafa7 100644 --- a/src/protocols.c +++ b/src/protocols.c @@ -154,8 +154,8 @@ static int read_file(const char *path) { if (values_list != NULL) { char match_name[2 * DATA_MAX_NAME_LEN]; - snprintf(match_name, sizeof(match_name), "%s:%s", key_buffer, - key_fields[i]); + ssnprintf(match_name, sizeof(match_name), "%s:%s", key_buffer, + key_fields[i]); if (ignorelist_match(values_list, match_name)) continue;