summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 29c322a..98bfdce 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -266,9 +266,9 @@ int lseek(int fd, int offset, int whence)
errno = EIO;
return -1;
}
+ openfiles[fd].cacheoffset = sectoroffset;
}
- openfiles[fd].cacheoffset = sectoroffset;
openfiles[fd].fileoffset = pos;
return pos;