diff --git a/sched/mqueue/mq_notify.c b/sched/mqueue/mq_notify.c index 862f99adc96..a6abf3d92ce 100644 --- a/sched/mqueue/mq_notify.c +++ b/sched/mqueue/mq_notify.c @@ -152,7 +152,7 @@ int mq_notify(mqd_t mqdes, FAR const struct sigevent *notification) /* Yes... Assign it to the current task. */ - memcpy(&msgq->ntevent, ¬ification->sigev_value, + memcpy(&msgq->ntevent, notification, sizeof(struct sigevent)); msgq->ntpid = rtcb->pid;