Fix ticket:74
authorRaymond Toy <toy.raymond@gmail.com>
Wed, 27 Feb 2013 04:44:18 +0000 (20:44 -0800)
committerRaymond Toy <toy.raymond@gmail.com>
Wed, 27 Feb 2013 04:44:18 +0000 (20:44 -0800)
commite8f64b3f83455a82edad394c472481fadde6ccb5
treef5afe6efd2cec7ddb55d4724292cc41c580f1674
parentfc60a7b508bb1e3fdc6d453f5b92a7f276331d2e
Fix ticket:74

When accounting for the octets left in the in-buffer that we haven't
read (or converted to characters), we were subtracting the index from
the total in-buffer length.  This is wrong if the file is less than
the total in-buffer length.  We should have subtracted from the actual
number of octets in the in-buffer.
src/code/fd-stream.lisp