Bad memcpy!

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@71 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-03-16 22:03:14 +00:00
parent d46387cc8b
commit 4980389bdb

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 */ /* 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) */ /* Copy the message priority as well (if a buffer is provided) */