split(1) vs big split sizes

utzoo!henry utzoo!henry
Thu Jan 13 22:20:34 AEST 1983


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++)



More information about the Net.bugs.v7 mailing list