]> granicus.if.org Git - strace/commitdiff
decode_poll_exiting: reserve more space in output buffer
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 08:34:57 +0000 (08:34 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 08:37:46 +0000 (08:37 +0000)
* poll.c (decode_poll_exiting): Reserve more space in output buffer.

poll.c

diff --git a/poll.c b/poll.c
index 4d31944d073d28cb5fe9acd164d69a1becf22043..bf9707cf03b6febb6719983a534830eff186ff83 100644 (file)
--- a/poll.c
+++ b/poll.c
@@ -155,7 +155,7 @@ decode_poll_exiting(struct tcb *tcp, const long pts)
                const char *flagstr = sprintflags("", pollflags, fds.revents);
 
                if (outptr + strlen(fdstr) + strlen(flagstr) + 1
-                   >= end_outstr - sizeof(", ...]")) {
+                   >= end_outstr - sizeof(", ...], ...")) {
                        outptr = stpcpy(outptr, "...");
                        break;
                }