From 6f6c8c5434f7ba31633af5170fbf24de6b2527a5 Mon Sep 17 00:00:00 2001 From: jifl Date: Tue, 30 Sep 2008 13:40:41 +0000 Subject: [PATCH] * pbuf.c (pbuf_copy_partial): Improve function description comment. Thanks to Luca Ceresoli --- src/core/pbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 933107dd..03024887 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -737,8 +737,10 @@ pbuf_copy(struct pbuf *p_to, struct pbuf *p_from) * * @param buf the pbuf from which to copy data * @param dataptr the application supplied buffer - * @param len length of data to copy (dataptr must be big enough) + * @param len length of data to copy (dataptr must be big enough). No more + * than buf->tot_len will be copied, irrespective of len * @param offset offset into the packet buffer from where to begin copying len bytes + * @return the number of bytes copied, or 0 on failure */ u16_t pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)