diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-04-07 21:57:10 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-04-07 21:57:10 +0000 |
commit | 6ba28409cc03bc8d368a80beda33902ca32b0471 (patch) | |
tree | b7e649a4aa46eb3be8d0ef657e35851867560711 | |
parent | 9ffcb3eac021a84fd2cbdd1b3b64da99583f4548 (diff) |
Formerly boot.c.~10~
-rw-r--r-- | boot/boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c index 6891b6cc..ec8f91cd 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -552,7 +552,8 @@ S_io_read (mach_port_t object, if (amount > *datalen) vm_allocate (mach_task_self (), amount, data, 1); - return read (0, *data, amount) == -1 ? errno : 0; + *datalen = read (0, *data, amount); + return *datalen < 0 ? errno : 0; } error_t |