mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 18:37:10 +03:00
bugfix: wrong calculation of written bytes in .well-known/core payload
This commit is contained in:
1 parent
c234833d16
commit
78794d3385
1 file changed
+1
@@ -233,6 +233,7 @@ print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen,
|
||||
if (left < *buflen) { /* this is not the first resource */
|
||||
*p++ = ',';
|
||||
--left;
|
||||
++written;
|
||||
}
|
||||
|
||||
if (!coap_print_link(r, p, &left))
|
||||
|
||||
Reference in new issue
Block a user