Fix a typo resulting in truncated linux32 signal trampoline code copied

to the usermode. Usually, signal handler segfaulted on return.

Reviewed by:	jhb
MFC after:	3 days
This commit is contained in:
kib 2006-10-31 17:53:02 +00:00
parent 624b4884d8
commit 66c70dc62d

View File

@ -868,7 +868,7 @@ linux_copyout_strings(struct image_params *imgp)
*/
if (sigcodesz)
copyout(imgp->proc->p_sysent->sv_sigcode,
((caddr_t)arginfo - sigcodesz), szsigcode);
((caddr_t)arginfo - sigcodesz), sigcodesz);
/*
* If we have a valid auxargs ptr, prepare some room