split: fix an edge case where -n l/... creates an extra file
commitd92849fe5a9c8a24203f70b02806737666cb980b
authorPádraig Brady <P@draigBrady.com>
Wed, 25 May 2011 12:05:37 +0000 (25 13:05 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 25 May 2011 22:04:58 +0000 (25 23:04 +0100)
tree3a90141f81ee5ff12a87854bb8256b00e4d5e010
parente89c998a9ecbe0a1b29d7e6c97531d5069877087
split: fix an edge case where -n l/... creates an extra file

* src/split.c (lines_bytes_chunk): Handle the edge case
where the file is truncated as we read.
* tests/misc/split-lchunk: Cleanup; no functional change.
src/split.c
tests/misc/split-lchunk