X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils%2Fdns%2Fdns.c;h=020e9fe896b354e467eae81f885f77c5fa6bd8f1;hb=abaa1c8a24e8eff5632dd6052b1da5f6535caf19;hp=2ea919b765be83f3219bd615fa8e7ef3c3d6f022;hpb=7045c4b543304ffabaa30a2ca9183489e75eafe3;p=collectd.git diff --git a/src/utils/dns/dns.c b/src/utils/dns/dns.c index 2ea919b7..020e9fe8 100644 --- a/src/utils/dns/dns.c +++ b/src/utils/dns/dns.c @@ -912,7 +912,7 @@ const char *qtype_str(int t) { return "ANY"; /* ... 255 */ #endif /* __BIND >= 19950621 */ default: - snprintf(buf, sizeof(buf), "#%i", t); + ssnprintf(buf, sizeof(buf), "#%i", t); return buf; } /* switch (t) */ } @@ -931,7 +931,7 @@ const char *opcode_str(int o) { case 5: return "Update"; default: - snprintf(buf, sizeof(buf), "Opcode%d", o); + ssnprintf(buf, sizeof(buf), "Opcode%d", o); return buf; } } @@ -998,7 +998,7 @@ const char *rcode_str(int rcode) { #endif /* RFC2136 rcodes */ #endif /* __BIND >= 19950621 */ default: - snprintf(buf, sizeof(buf), "RCode%i", rcode); + ssnprintf(buf, sizeof(buf), "RCode%i", rcode); return buf; } } /* const char *rcode_str (int rcode) */