Zero-extend 32-bit addresses when printing argv array.

(printargv): Zero-extend 32-bit addresses.
Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
process".
This commit is contained in:
Andreas Schwab 2009-08-28 19:36:20 +02:00
parent 85f583229f
commit 99c85693a5

View File

@ -1776,8 +1776,8 @@ struct tcb *tcp;
long addr;
{
union {
int p32;
long p64;
unsigned int p32;
unsigned long p64;
char data[sizeof(long)];
} cp;
char *sep;