diff options
| -rw-r--r-- | firmware/common/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 1005780..663465b 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -268,6 +268,9 @@ int lseek(int fd, int offset, int whence) } openfiles[fd].cacheoffset = sectoroffset; } + else + if ( openfiles[fd].cacheoffset != -1 ) + openfiles[fd].cacheoffset = sectoroffset; openfiles[fd].fileoffset = pos; |