Avoid possible one-byte overrun in ioset_line_read().
authorMichael Poole <mdpoole@troilus.org>
Sun, 11 Mar 2007 15:59:07 +0000 (11:59 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 11 Mar 2007 15:59:07 +0000 (11:59 -0400)
commit51cae93b35b52f61992dc93fb845dc7491e33943
tree77c71e7c05590581cca7d38123c651d8fb6063b9
parentb78dd41ac380362285852878d19ff323c087aee7
Avoid possible one-byte overrun in ioset_line_read().

src/ioset.c (ioset_line_read): We can safely overwrite dest[max-1] to
  terminate the buffer.  Also return the available line length, rather
  than the number of bytes written to the buffer.
src/ioset.c