[net.bugs.v7] split

henry (01/14/83)

Split(1) as distributed does odd things if the line count given as an
option exceeds 32767.  Guess why.  The fix is roughly as follows (the
line numbers may not exactly match those of the distributed one):

	3c7
	< unsigned count = 1000;
	---
	> long count = 1000L;
	14a19
	> 	register long nbytes;
	15a21
	> 	extern long atol();
	35c41
	< 				count = atoi(argv[i]+1);
	---
	> 				count = atol(argv[i]+1);
	56c62
	< 	for(i=0; i<count; i++)
	---
	> 	for(nbytes=0L; nbytes<count; nbytes++)