decode_poll_exiting: reserve more space in output buffer

* poll.c (decode_poll_exiting): Reserve more space in output buffer.
This commit is contained in:
Дмитрий Левин 2015-08-01 08:34:57 +00:00
parent d9fb450748
commit 3b9d315e8c

2
poll.c
View File

@ -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;
}