From 278f78a45b51bb0089f95afd8ba1478b3e132af8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 21 Jun 2016 00:25:52 +1000 Subject: [PATCH] use ISC_PRINT_QUADFORMAT --- lib/isc/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/buffer.c b/lib/isc/buffer.c index bcb299992a..30e6293c2f 100644 --- a/lib/isc/buffer.c +++ b/lib/isc/buffer.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -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);