sort: fix a bug when sorting unterminated lines
authorPádraig Brady <P@draigBrady.com>
Thu, 15 Jul 2010 11:06:04 +0000 (12:06 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 15 Jul 2010 11:09:33 +0000 (12:09 +0100)
commitaadc67dfdb47f28bb8d1fa5e0fe0f52e2a8c51bf
treeb0135f5df47426ab67ab7e936c22ad94db0870d2
parentb084d6bcb51ddb19c6febe3c3ab343b89efdd2f2
sort: fix a bug when sorting unterminated lines

* src/sort.c (fillbuf): The previous commit incorrectly
terminated the buffer when the last line of input
didn't contain a terminating character.
src/sort.c