csplit(1): Fix extraneous output in edge case
authormillert <millert@openbsd.org>
Thu, 8 Jul 2021 00:38:42 +0000 (00:38 +0000)
committermillert <millert@openbsd.org>
Thu, 8 Jul 2021 00:38:42 +0000 (00:38 +0000)
commit82c893686e8f24841a21b7859da5ed39f6775e2a
tree27e1ad33f64308621fde720fd1316b1bdabbf6cf
parent1a6b37a938ef08184f1201c8407803a03d4a1e09
csplit(1): Fix extraneous output in edge case
When the input to csplit contains fewer lines than the number of matches
specified, extra output was mistakenly included in some output files.
From FreeBSD via Tim Chase.
usr.bin/csplit/csplit.c