diff --git a/lib/dns/rdata/generic/caa_257.c b/lib/dns/rdata/generic/caa_257.c index 8d9e8ad0d7..8440fb40e0 100644 --- a/lib/dns/rdata/generic/caa_257.c +++ b/lib/dns/rdata/generic/caa_257.c @@ -95,7 +95,7 @@ totext_caa(ARGS_TOTEXT) { * Flags */ flags = uint8_consume_fromregion(®ion); - sprintf(buf, "%u ", flags); + snprintf(buf, sizeof(buf), "%u ", flags); RETERR(str_totext(buf, target)); /*