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 29c322a0a9..98bfdce42e 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -266,9 +266,9 @@ int lseek(int fd, int offset, int whence)
266 errno = EIO; 266 errno = EIO;
267 return -1; 267 return -1;
268 } 268 }
269 openfiles[fd].cacheoffset = sectoroffset;
269 } 270 }
270 271
271 openfiles[fd].cacheoffset = sectoroffset;
272 openfiles[fd].fileoffset = pos; 272 openfiles[fd].fileoffset = pos;
273 273
274 return pos; 274 return pos;