]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ipc/ipc_mqueue.c
xnu-6153.141.1.tar.gz
[apple/xnu.git] / osfmk / ipc / ipc_mqueue.c
index 360879748d76c9db446377ebad1bd6cdc0c907e2..7626a1ad23ac6e5311262bfe610181cf97b968c0 100644 (file)
@@ -1424,7 +1424,7 @@ ipc_mqueue_peek_locked(ipc_mqueue_t mq,
        if (msg_trailerp != NULL) {
                memcpy(msg_trailerp,
                    (mach_msg_max_trailer_t *)((vm_offset_t)kmsg->ikm_header +
-                   round_msg(kmsg->ikm_header->msgh_size)),
+                   mach_round_msg(kmsg->ikm_header->msgh_size)),
                    sizeof(mach_msg_max_trailer_t));
        }
        if (kmsgp != NULL) {