1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

async dns: format string for pointer arithmetic

https://github.com/warmcat/libwebsockets/issues/1780
This commit is contained in:
Andy Green 2019-11-28 05:17:23 +00:00
parent 74712ea4f5
commit 938540723c

View file

@ -76,8 +76,8 @@ again1:
ll = *ls++;
if (ls + ll + 1 > e) {
lwsl_notice("%s: label len invalid, %ld vs %ld\n", __func__,
(ls + ll + 1) - pkt, e - pkt);
lwsl_notice("%s: label len invalid, %d vs %d\n", __func__,
lws_ptr_diff((ls + ll + 1), pkt), lws_ptr_diff(e, pkt));
return -1;
}