]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Fix format strings for Windows.
[meshlink] / src / route.c
index 618b0ab97bd93440aa0f729db484f3411786668d..0b2d22eb55ca0c3f189391252d6baedd786ac07b 100644 (file)
@@ -347,7 +347,7 @@ static void fragment_ipv4_packet(node_t *dest, vpn_packet_t *packet) {
        todo = ntohs(ip.ip_len) - ip_size;
 
        if(ether_size + ip_size + todo != packet->len) {
-               ifdebug(TRAFFIC) logger(LOG_WARNING, "Length of packet (%d) doesn't match length in IPv4 header (%zd)", packet->len, ether_size + ip_size + todo);
+               ifdebug(TRAFFIC) logger(LOG_WARNING, "Length of packet (%d) doesn't match length in IPv4 header (%d)", packet->len, (int)(ether_size + ip_size + todo));
                return;
        }