2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

use ISC_PRINT_QUADFORMAT

This commit is contained in:
Mark Andrews 2016-06-21 00:25:52 +10:00
parent 3f06b888ae
commit 278f78a45b

View File

@ -21,6 +21,7 @@
#include <isc/buffer.h>
#include <isc/mem.h>
#include <isc/print.h>
#include <isc/region.h>
#include <isc/string.h>
#include <isc/util.h>
@ -474,7 +475,7 @@ isc_buffer_putdecint(isc_buffer_t *b, isc_int64_t v) {
REQUIRE(ISC_BUFFER_VALID(b));
/* xxxwpk do it more low-level way ? */
l = snprintf(buf, 21, "%lld", v);
l = snprintf(buf, 21, "%" ISC_PRINT_QUADFORMAT "d", v);
RUNTIME_CHECK(l <= 21);
if (b->autore) {
result = isc_buffer_reserve(&b, l);