summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-08-28 19:36:20 +0200
committerAndreas Schwab <schwab@redhat.com>2009-08-28 19:36:20 +0200
commit99c85693a54e3da6c0e45127e25331766c071c2a (patch)
tree2af0441279bc0877eba0331ed0620947a8c18471
parent85f583229fdc670c54a6c8a2f7b2f05bb0d57ab7 (diff)
downloadstrace-99c85693a54e3da6c0e45127e25331766c071c2a.tar.gz
strace-99c85693a54e3da6c0e45127e25331766c071c2a.tar.bz2
strace-99c85693a54e3da6c0e45127e25331766c071c2a.tar.xz
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".
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 45ba33b..23bd413 100644
--- a/process.c
+++ b/process.c
@@ -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;