summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:03:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:03:14 +0000
commit7b503394caddf86de0a2b09994ed5de902f060db (patch)
tree19ca41d03df818a1ca4db1a62cd08b0cdf4cc9b6
parent30e71160a9795e9a11c54bc011d609cfb879186c (diff)
downloadnuttx-7b503394caddf86de0a2b09994ed5de902f060db.tar.gz
nuttx-7b503394caddf86de0a2b09994ed5de902f060db.tar.bz2
nuttx-7b503394caddf86de0a2b09994ed5de902f060db.zip
Bad memcpy!
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@71 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/sched/mq_receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/mq_receive.c b/nuttx/sched/mq_receive.c
index 649dfae7a..35b84bb74 100644
--- a/nuttx/sched/mq_receive.c
+++ b/nuttx/sched/mq_receive.c
@@ -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) */