diff options
author | rnordier <rnordier@FreeBSD.org> | 1999-01-22 18:32:52 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1999-01-22 18:32:52 +0000 |
commit | 8603959049afe5815b5324cfb93e048d192f8f70 (patch) | |
tree | f6539a203dc1558f14a337d4a2bfbba39fb67fd0 /sys | |
parent | a6bfe6453305db2a177235ca5b6d1ef551939c94 (diff) | |
download | FreeBSD-src-8603959049afe5815b5324cfb93e048d192f8f70.zip FreeBSD-src-8603959049afe5815b5324cfb93e048d192f8f70.tar.gz |
Fix read error not being detected.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/i386/libi386/i386_copy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/i386_copy.c b/sys/boot/i386/libi386/i386_copy.c index c69fb33..d0903f1 100644 --- a/sys/boot/i386/libi386/i386_copy.c +++ b/sys/boot/i386/libi386/i386_copy.c @@ -38,7 +38,8 @@ int i386_readin(int fd, vm_offset_t dest, size_t len) { void *buf; - size_t resid, chunk, get, got; + size_t resid, chunk, get; + ssize_t got; if (dest + len >= memtop) return(0); |