diff --git a/src/system/kernel/arch/x86/arch_thread.cpp b/src/system/kernel/arch/x86/arch_thread.cpp index 7a033a8476..e27a649454 100644 --- a/src/system/kernel/arch/x86/arch_thread.cpp +++ b/src/system/kernel/arch/x86/arch_thread.cpp @@ -481,7 +481,7 @@ arch_setup_signal_frame(struct thread *thread, struct sigaction *action, userStack -= ((uint32)i386_end_return_from_signal + 3 - (uint32)i386_return_from_signal) / 4; signalCode = userStack; - status = user_memcpy(signalCode, i386_return_from_signal, + status = user_memcpy(signalCode, (const void *)&i386_return_from_signal, ((uint32)i386_end_return_from_signal - (uint32)i386_return_from_signal)); if (status < B_OK)