Bad memcpy!
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@71 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
55c5de7361
commit
2261abcc9e
|
@ -183,7 +183,7 @@ int mq_receive(mqd_t mqdes, void *msg, size_t msglen, int *prio)
|
|||
|
||||
/* Copy the message into the caller's buffer */
|
||||
|
||||
memcpy((void*)curr->mail, msg, rcvmsglen);
|
||||
memcpy(msg, (void*)curr->mail, rcvmsglen);
|
||||
|
||||
/* Copy the message priority as well (if a buffer is provided) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue