Re: prevent short transfer in lptwrite()
On Thu, Apr 9, 2015 at 11:10 AM, Martin Natano wrote: > uio_resid may overflow when coerced to u_int, causing lptwrite() to > return early. Also, uiomovei() can be replaced with uiomove(), the size > argument is of type size_t anyway. Committed as well.
prevent short transfer in lptwrite()
uio_resid may overflow when coerced to u_int, causing lptwrite() to return early. Also, uiomovei() can be replaced with uiomove(), the size argument is of type size_t anyway. Index: dev/ic/lpt.c === RCS file: /cvs/src/sys/dev/ic/lpt.c