diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index 0c272da61..18080b85c 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -4886,7 +4886,7 @@ PRE(sys_poll) (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); PRE_MEM_READ( "poll(ufds.events)", (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); - PRE_MEM_WRITE( "poll(ufd.reventss)", + PRE_MEM_WRITE( "poll(ufds.reventss)", (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); } } diff --git a/memcheck/tests/badpoll.stderr.exp b/memcheck/tests/badpoll.stderr.exp index 2586ace4c..1c71844b7 100644 --- a/memcheck/tests/badpoll.stderr.exp +++ b/memcheck/tests/badpoll.stderr.exp @@ -1,11 +1,11 @@ -Syscall param poll(ufds) points to uninitialised byte(s) +Syscall param poll(ufds.fd) points to uninitialised byte(s) at 0x........: poll (in /...libc...) by 0x........: main (badpoll.c:22) Address 0x........ is 8 bytes inside a block of size 15 alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (badpoll.c:12) -Syscall param poll(ufds) points to unaddressable byte(s) +Syscall param poll(ufds.reventss) points to unaddressable byte(s) at 0x........: poll (in /...libc...) by 0x........: main (badpoll.c:22) Address 0x........ is 0 bytes after a block of size 15 alloc'd