Created attachment 150506 [details]
"split -l" gives a wrong output while line length ist greater MAXBSIZE (in my case 64k).
The "goto" in the source doesn't solve the problem.
"newfile" has to be called with the first fgets buffer of a line.
Mostly a good example for the error is to split the output of mysqldump (bigger tables).
I think in case of pattern matching ( split -p ) there has to be another coding (dynamic buffer for each line). But this not my turn.
A suggestion of a patch ist attached.