diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 1f28530..67ce0e9 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -100,6 +100,8 @@ kprintf("SEEK FAILED!"); size = fl_fread(data, size, 1, _file); + if (size >= 0) + fd->offset = offset + size; /* Return */ return (size);