Make cnt of type size_t, to avoid uiomove() overrun its iovecs.
commit7031ccd4467ba69073470e64f20fe7f6742d8b6b
authorNicolas Joly <njoly@NetBSD.org>
Wed, 20 Feb 2008 15:08:14 +0000 (20 15:08 +0000)
committerNicolas Joly <njoly@NetBSD.org>
Wed, 20 Feb 2008 15:08:14 +0000 (20 15:08 +0000)
treed1a6c2ca4b095072ffc5af3961cda5a34b3bc66e
parente1c02e935a55efb46aa59a686997e444c908edf6
Make cnt of type size_t, to avoid uiomove() overrun its iovecs.
This makes write(2) works with large buffers (>=4GB).

Fix from pooka, tested by myself.
sys/kern/kern_subr.c