execve: prepare for handling big pointers

* execve.c (printargv): Change cp.p64 type from unsigned long
to kernel_ulong_t so it could handle wordsize > sizeof(long) properly.
This commit is contained in:
Дмитрий Левин 2016-12-25 22:27:33 +00:00
parent 276839aec6
commit 7e5cd0e72b

View File

@ -49,8 +49,8 @@ printargv(struct tcb *const tcp, kernel_ureg_t addr)
for (n = 0; addr; sep = ", ", addr += wordsize, ++n) {
union {
unsigned int p32;
unsigned long p64;
char data[sizeof(long)];
kernel_ulong_t p64;
char data[sizeof(kernel_ulong_t)];
} cp;
if (umoven(tcp, addr, wordsize, cp.data)) {