]> granicus.if.org Git - strace/commitdiff
dumpiov_upto: cast pointers to kernel_ureg_t instead of long
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 15:36:50 +0000 (15:36 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 24 Dec 2016 14:58:42 +0000 (14:58 +0000)
* util.c  (dumpiov_upto): Cast iovec.iov_base pointer to kernel_ureg_t
instead of long.

util.c

diff --git a/util.c b/util.c
index 482dafb2103c634ffb1ab486d25469641de65ae4..ff65e8adf3d7d7b796a08346815f347ec869907b 100644 (file)
--- a/util.c
+++ b/util.c
@@ -960,7 +960,7 @@ dumpiov_upto(struct tcb *tcp, int len, long addr, unsigned long data_size)
                        /* include the buffer number to make it easy to
                         * match up the trace with the source */
                        tprintf(" * %lu bytes in buffer %d\n", iov_len, i);
-                       dumpstr(tcp, (long) iov_iov_base(i), iov_len);
+                       dumpstr(tcp, (kernel_ureg_t) iov_iov_base(i), iov_len);
                }
        }
        free(iov);