mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 16:36:20 +03:00
another type fix
This commit is contained in:
1 parent
9d352431b2
commit
d52f338215
1 file changed
+1
-1
@@ -359,7 +359,7 @@ coap_opt_setheader(coap_opt_t *opt, size_t maxlen,
|
||||
opt[0] |= length & 0x0f;
|
||||
} else if (length < 270) {
|
||||
if (maxlen < skip + 1) {
|
||||
debug("insufficient space to encode option length %d", length);
|
||||
debug("insufficient space to encode option length %zu", length);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user