Fix CoAP/CC3200 compilation

PUBLISHED_FROM=00e4c01cc2bccd63b0f18b797e2c0503a489ef6f
This commit is contained in:
Alexander Alashkin 2016-10-21 17:38:58 +02:00 committed by Cesanta Bot
parent bd2a4097b2
commit 835af2cae1

View File

@ -9778,7 +9778,7 @@ uint32_t mg_coap_compose(struct mg_coap_message *cm, struct mbuf *io) {
}
if (cm->payload.len != 0) {
*ptr = -1;
*ptr = (char)-1;
ptr++;
memcpy(ptr, cm->payload.p, cm->payload.len);
}