applied patch from chrysn to fix bug in .well-known/core generation (missing 2 bytes)

This commit is contained in:
Olaf Bergmann committed 2013-02-01 13:58:11 +01:00
1 parent 6a613598c6
commit 81ee38611d
1 file changed
+2 -2
+2 -2
View File
@@ -867,11 +867,11 @@ wellknown_response(coap_context_t *context, coap_pdu_t *request) {
/* Manually set payload of response to let print_wellknown() write,
* into our buffer without copying data. */
len = resp->max_size - resp->length - 1;
resp->data = (unsigned char *)resp->hdr + resp->length;
*resp->data = COAP_PAYLOAD_START;
resp->data++;
resp->length--;
resp->length++;
len = resp->max_size - resp->length;
if (!print_wellknown(context, resp->data, &len,
coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter))) {