commit | 9cecf7f8d6115a247be7186013857270b2d588d5 | [log] [tgz] |
---|---|---|
author | John Hughes <john@Calva.COM> | Tue Oct 16 10:20:22 2001 +0000 |
committer | John Hughes <john@Calva.COM> | Tue Oct 16 10:20:22 2001 +0000 |
tree | a7ff778020594f73648f026522f432434c3665c6 | |
parent | 7b3346be42d6a1f539e95d385ee498f8b3c529f8 [diff] [blame] |
Fix umovestr of unmapped page for UnixWare
diff --git a/util.c b/util.c index 595b847..c59d25a 100644 --- a/util.c +++ b/util.c
@@ -711,7 +711,7 @@ while (left) { if (move > left) move = left; - if ((move = read(fd, laddr, move)) == -1) + if ((move = read(fd, laddr, move)) <= 0) return left != len ? 0 : -1; if (memchr (laddr, 0, move)) break; left -= move;