summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/mq_send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/mq_send.c b/nuttx/sched/mq_send.c
index 92400d9c4..a0172a154 100644
--- a/nuttx/sched/mq_send.c
+++ b/nuttx/sched/mq_send.c
@@ -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 */