9
0
Fork 0

Bad memcpy!

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@71 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2007-03-16 22:03:14 +00:00
parent 55c5de7361
commit 2261abcc9e
1 changed files with 1 additions and 1 deletions

View File

@ -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) */