mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
Minor coding style fix in pbuf.c
This commit is contained in:
parent
840d1e60fa
commit
aef3d2cb87
@ -982,8 +982,9 @@ pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
|
|||||||
} else {
|
} else {
|
||||||
/* copy from this buffer. maybe only partially. */
|
/* copy from this buffer. maybe only partially. */
|
||||||
buf_copy_len = p->len - offset;
|
buf_copy_len = p->len - offset;
|
||||||
if (buf_copy_len > len)
|
if (buf_copy_len > len) {
|
||||||
buf_copy_len = len;
|
buf_copy_len = len;
|
||||||
|
}
|
||||||
/* copy the necessary parts of the buffer */
|
/* copy the necessary parts of the buffer */
|
||||||
MEMCPY(&((char*)dataptr)[left], &((char*)p->payload)[offset], buf_copy_len);
|
MEMCPY(&((char*)dataptr)[left], &((char*)p->payload)[offset], buf_copy_len);
|
||||||
copied_total += buf_copy_len;
|
copied_total += buf_copy_len;
|
||||||
|
Loading…
Reference in New Issue
Block a user