]> granicus.if.org Git - strace/commit
io: handle data_size of -1 as unlimited data in print_iovec
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 29 Sep 2016 12:57:55 +0000 (15:57 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 2 Oct 2016 19:19:15 +0000 (19:19 +0000)
commitf3228d32681b96b8e39af9c71af46e162f2f0b83
tree48de78a8364e3126d04b7532592a7f3146fb4227
parente8f36ec0c56744390751a7a7b7da4c6afdaad31b
io: handle data_size of -1 as unlimited data in print_iovec

Otherwise it can be depleted and print_iovec starts printing empty
strings.

* io.c (print_iovec): Interpret c->data_size of -1 as unlimited data
and do not decrease it in this case.
io.c