diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-16 22:03:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-16 22:03:14 +0000 |
commit | 7b503394caddf86de0a2b09994ed5de902f060db (patch) | |
tree | 19ca41d03df818a1ca4db1a62cd08b0cdf4cc9b6 /nuttx/sched | |
parent | 30e71160a9795e9a11c54bc011d609cfb879186c (diff) | |
download | px4-nuttx-7b503394caddf86de0a2b09994ed5de902f060db.tar.gz px4-nuttx-7b503394caddf86de0a2b09994ed5de902f060db.tar.bz2 px4-nuttx-7b503394caddf86de0a2b09994ed5de902f060db.zip |
Bad memcpy!
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@71 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/mq_receive.c | 2 |
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) */ |