]> git.ozlabs.org Git - ccan/blobdiff - ccan/rfc822/test/run-hdr-and-body.c
rfc822: Fix test bugs on 64-bit platforms
[ccan] / ccan / rfc822 / test / run-hdr-and-body.c
index d3f563ff35b95d94f119ef6f2240a40cb8c8f74b..fe4515a3a6768508804bb6021e31555768a223ca 100644 (file)
@@ -45,7 +45,7 @@ static void check_header(struct rfc822_msg *msg,
        allocation_failure_check();
 
        ok(hname.ptr && bytestring_eq(hname, bytestring_from_string(name)),
-          "Header name \"%.*s\"", hname.len, hname.ptr);
+          "Header name \"%.*s\"", (int)hname.len, hname.ptr);
 
        hvalue = rfc822_header_raw_value(msg, h);
        allocation_failure_check();