summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 2a32c60..df90e07 100644
--- a/file.c
+++ b/file.c
@@ -134,7 +134,7 @@ filewrite(struct file *f, char *addr, int n)
begin_trans();
ilock(f->ip);
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
- f->off += r;
+ f->off += r;
iunlock(f->ip);
commit_trans();