diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-11-30 05:59:47 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-11-30 05:59:47 +0000 |
commit | 58cbb073075c846abbd1a4ca9736fba79bd924c0 (patch) | |
tree | cb8e3ea13353c1b7242f7ae5533e7b3b105abc22 | |
parent | fd19a949b49aefa355e422840d932ed6eed4433d (diff) |
Notes
-rw-r--r-- | lib/libstand/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/write.c b/lib/libstand/write.c index ea9d491afa9c1..861a96fd3728c 100644 --- a/lib/libstand/write.c +++ b/lib/libstand/write.c @@ -89,8 +89,8 @@ write(fd, dest, bcount) btodb(f->f_offset), bcount, dest, &resid); if (errno) return (-1); - f->f_offset += resid; - return (resid); + f->f_offset += (bcount - resid); + return (bcount - resid); } resid = bcount; if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) |