diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-11-30 06:24:34 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-11-30 06:24:34 +0000 |
| commit | 25993d3a47ade5e7bd5d3318df81eefd2b0763f0 (patch) | |
| tree | 118b5ecdfcc0955cd38ae7fb5656373df857beb8 /lib/libstand/write.c | |
| parent | 7735bb0f64fe813a252cdae3f9730e84d6205731 (diff) | |
Notes
Diffstat (limited to 'lib/libstand/write.c')
| -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 861a96fd3728..ea9d491afa9c 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 += (bcount - resid); - return (bcount - resid); + f->f_offset += resid; + return (resid); } resid = bcount; if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) |
