examples/cord_ep: fix typo in node information

This commit is contained in:
Alexandre Abadie 2019-04-16 10:09:11 +02:00
parent 245a499f89
commit bbbb62b571
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -68,8 +68,8 @@ static ssize_t _handler_info(coap_pkt_t *pdu,
gcoap_resp_init(pdu, buf, len, COAP_CODE_CONTENT); gcoap_resp_init(pdu, buf, len, COAP_CODE_CONTENT);
size_t resp_len = coap_opt_finish(pdu, COAP_OPT_FINISH_PAYLOAD); size_t resp_len = coap_opt_finish(pdu, COAP_OPT_FINISH_PAYLOAD);
size_t slen = sizeof("SOME NODE INFOMRATION"); size_t slen = sizeof("SOME NODE INFORMATION");
memcpy(pdu->payload, "SOME NODE INFOMRATION", slen); memcpy(pdu->payload, "SOME NODE INFORMATION", slen);
return resp_len + slen; return resp_len + slen;
} }