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:
parent
74712ea4f5
commit
938540723c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue