mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
4748. [cleanup] Sprintf to snprintf coversions. [RT #46132]
This commit is contained in:
@@ -522,7 +522,7 @@ typemap_totext(isc_region_t *sr, dns_rdata_textctx_t *tctx,
|
||||
RETERR(dns_rdatatype_totext(t, target));
|
||||
} else {
|
||||
char buf[sizeof("TYPE65535")];
|
||||
sprintf(buf, "TYPE%u", t);
|
||||
snprintf(buf, sizeof(buf), "TYPE%u", t);
|
||||
RETERR(str_totext(buf, target));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user