bugfix: wrong calculation of written bytes in .well-known/core payload

This commit is contained in:
Olaf Bergmann committed 2014-01-03 16:18:27 +01:00
1 parent c234833d16
commit 78794d3385
1 file changed
+1
+1
View File
@@ -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))