You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2015/11/06 00:50:02 UTC

incubator-mynewt-larva git commit: Fix mbuf bugs: args incorrect after bcopy->memcpy

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 4bb34e7f2 -> 0ab9c8dc7


Fix mbuf bugs: args incorrect after bcopy->memcpy


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/0ab9c8dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/0ab9c8dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/0ab9c8dc

Branch: refs/heads/master
Commit: 0ab9c8dc7ff57b05b79cc457f4f186d40e496aec
Parents: 4bb34e7
Author: Christopher Collins <cc...@gmail.com>
Authored: Thu Nov 5 15:49:32 2015 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Thu Nov 5 15:49:32 2015 -0800

----------------------------------------------------------------------
 libs/os/src/os_mbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/0ab9c8dc/libs/os/src/os_mbuf.c
----------------------------------------------------------------------
diff --git a/libs/os/src/os_mbuf.c b/libs/os/src/os_mbuf.c
index 18e5571..6b4a0af 100644
--- a/libs/os/src/os_mbuf.c
+++ b/libs/os/src/os_mbuf.c
@@ -349,7 +349,7 @@ os_mbuf_copydata(const struct os_mbuf *m, int off, int len, void *dst)
     }
     while (len > 0) {
         count = min(m->om_len - off, len);
-        memcpy(m->om_data + off, udst, count);
+        memcpy(udst, m->om_data + off, count);
         len -= count;
         udst += count;
         off = 0;