summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 1005780cff..663465bf76 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -268,6 +268,9 @@ int lseek(int fd, int offset, int whence)
268 } 268 }
269 openfiles[fd].cacheoffset = sectoroffset; 269 openfiles[fd].cacheoffset = sectoroffset;
270 } 270 }
271 else
272 if ( openfiles[fd].cacheoffset != -1 )
273 openfiles[fd].cacheoffset = sectoroffset;
271 274
272 openfiles[fd].fileoffset = pos; 275 openfiles[fd].fileoffset = pos;
273 276