]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use ISC_PRINT_QUADFORMAT
authorMark Andrews <marka@isc.org>
Mon, 20 Jun 2016 14:25:52 +0000 (00:25 +1000)
committerMark Andrews <marka@isc.org>
Mon, 20 Jun 2016 14:25:52 +0000 (00:25 +1000)
lib/isc/buffer.c

index bcb299992a37c624ee36464d56df4ef88fa59f4c..30e6293c2f29074e1b958570d091f9b60b20f183 100644 (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);