Bug in java_io_FileInputStream_skip

Archie Cobbs archie at whistle.com
Fri Jun 18 08:57:24 PDT 1999


jacobi at parc.xerox.com writes:
> Bug in java_io_FileInputStream_skip 
> 	
> 	/* Not seekable - try just reading. */
> 	ret = 0;
> 	while (off > 0) {
> 		rc = KREAD(unhand(unhand(fh)->fd)->fd, buffer, 100, &count);
> 
> Should not simply read 100 bytes but beter min(100, off) bytes.

Thanks -- fixed now.

-ARchie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list