linux_copyout_strings: Use PROC_PS_STRINGS().

Reviewed by:	markj
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D34173
This commit is contained in:
John Baldwin 2022-02-04 15:57:57 -08:00
parent ffe74ab77f
commit 6bea696af2

View File

@ -771,7 +771,7 @@ linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base)
char canary[LINUX_AT_RANDOM_LEN];
size_t execpath_len;
arginfo = (struct linux32_ps_strings *)LINUX32_PS_STRINGS;
arginfo = (struct linux32_ps_strings *)PROC_PS_STRINGS(imgp->proc);
destp = (uintptr_t)arginfo;
if (imgp->execpath != NULL && imgp->auxargs != NULL) {