altitude -= 10000000;
}
- snprintf(NULL, 0,
+ snprintf(buf, sizeof(buf),
"%d %d %d.%03d %s %d %d %d.%03d %s %s%lu.%02lum %s %s %s",
d1, m1, s1, fs1, north ? "N" : "S",
d2, m2, s2, fs2, east ? "E" : "W",
totext_in_dhcid(ARGS_TOTEXT) {
isc_region_t sr, sr2;
/* " ; 64000 255 64000" */
- char buf[5 + 3*5 + 1];
+ char buf[5 + 3*11 + 1];
REQUIRE(rdata->type == dns_rdatatype_dhcid);
REQUIRE(rdata->rdclass == dns_rdataclass_in);
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
RETERR(str_totext(/* ( */ " )", target));
if (rdata->length > 2) {
- snprintf(NULL, 0, " ; %u %u %u",
+ snprintf(buf, sizeof(buf), " ; %u %u %u",
sr2.base[0] * 256U + sr2.base[1],
sr2.base[2], rdata->length - 3U);
RETERR(str_totext(buf, target));