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:
parent
d9fb450748
commit
3b9d315e8c
2
poll.c
2
poll.c
@ -155,7 +155,7 @@ decode_poll_exiting(struct tcb *tcp, const long pts)
|
|||||||
const char *flagstr = sprintflags("", pollflags, fds.revents);
|
const char *flagstr = sprintflags("", pollflags, fds.revents);
|
||||||
|
|
||||||
if (outptr + strlen(fdstr) + strlen(flagstr) + 1
|
if (outptr + strlen(fdstr) + strlen(flagstr) + 1
|
||||||
>= end_outstr - sizeof(", ...]")) {
|
>= end_outstr - sizeof(", ...], ...")) {
|
||||||
outptr = stpcpy(outptr, "...");
|
outptr = stpcpy(outptr, "...");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user