Fix available byte count returned by ioq_grow().
authorMichael Poole <mdpoole@troilus.org>
Fri, 19 Nov 2010 21:02:01 +0000 (16:02 -0500)
committerMichael Poole <mdpoole@troilus.org>
Fri, 19 Nov 2010 21:02:01 +0000 (16:02 -0500)
commiteab60cb760238b0f57727c1cbe7e095286c58d81
tree8887f0f1dd4f7deccaea9dcc9af3fac7a5477fa5
parentea5f49b4214412b9e5229128e9c45dac657959e8
Fix available byte count returned by ioq_grow().

ioq_grow() needs to use the same -1 that ioq_put_avail() uses when
the "get" pointer is at byte 0.

src/ioset.c (ioq_grow): Reduce the reported available-byte count by 1.
src/ioset.c