mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix another backward memcpy
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@82 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ int mq_send(mqd_t mqdes, const void *msg, size_t msglen, int prio)
|
||||
|
||||
/* Copy the message data into the message */
|
||||
|
||||
memcpy((void*)msg, (const void*)curr->mail, msglen);
|
||||
memcpy((const void*)curr->mail, (void*)msg, msglen);
|
||||
|
||||
/* Insert the new message in the message queue */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user