diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/msgsnd.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/msgsnd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c index 43a5a870e2..a068556496 100644 --- a/sysdeps/unix/sysv/linux/msgsnd.c +++ b/sysdeps/unix/sysv/linux/msgsnd.c @@ -24,6 +24,8 @@ #include <sysdep.h> #include <sys/syscall.h> +#include <bp-checks.h> + int msgsnd (msqid, msgp, msgsz, msgflg) int msqid; @@ -31,5 +33,6 @@ msgsnd (msqid, msgp, msgsz, msgflg) size_t msgsz; int msgflg; { - return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz, msgflg, (void *)msgp); + return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz, + msgflg, CHECK_N (msgp, msgsz)); } |