diff options
author | Petr Machata <pmachata@redhat.com> | 2014-01-10 20:02:12 +0100 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:24 +0900 |
commit | 8d1dc2a818ecc9ec5c777691b55bde4e62e6d5b4 (patch) | |
tree | 6f48d85c367e3fa4c2f0fa600f0c09ef70e5becf /sysdeps | |
parent | a12d161749c556abf3d342896cc8d4dc1f41a1ca (diff) | |
download | ltrace-8d1dc2a818ecc9ec5c777691b55bde4e62e6d5b4.tar.gz ltrace-8d1dc2a818ecc9ec5c777691b55bde4e62e6d5b4.tar.bz2 ltrace-8d1dc2a818ecc9ec5c777691b55bde4e62e6d5b4.zip |
Type umovebytes properly
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux-gnu/trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c index 0abb545..3fa2039 100644 --- a/sysdeps/linux-gnu/trace.c +++ b/sysdeps/linux-gnu/trace.c @@ -1,6 +1,6 @@ /* * This file is part of ltrace. - * Copyright (C) 2007,2011,2012,2013 Petr Machata, Red Hat Inc. + * Copyright (C) 2007,2011,2012,2013,2014 Petr Machata, Red Hat Inc. * Copyright (C) 2010 Joe Damato * Copyright (C) 1998,2002,2003,2004,2008,2009 Juan Cespedes * Copyright (C) 2006 Ian Wienand @@ -1194,7 +1194,7 @@ os_ltrace_exiting_sighandler(void) } size_t -umovebytes(struct process *proc, void *addr, void *laddr, size_t len) +umovebytes(struct process *proc, arch_addr_t addr, void *buf, size_t len) { union { @@ -1215,11 +1215,11 @@ umovebytes(struct process *proc, void *addr, void *laddr, size_t len) started = 1; if (len - offset >= sizeof(long)) { - memcpy(laddr + offset, &a.c[0], sizeof(long)); + memcpy(buf + offset, &a.c[0], sizeof(long)); bytes_read += sizeof(long); } else { - memcpy(laddr + offset, &a.c[0], len - offset); + memcpy(buf + offset, &a.c[0], len - offset); bytes_read += (len - offset); } offset += sizeof(long); |