diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 9d87c30..c89fc42 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -106,8 +106,10 @@ kprintf("SEEK FAILED!"); size = fl_fread(data, size, 1, _file); - if (size >= 0) - fd->offset = offset + size; + if (size > 0) + fd->offset += size; + else + kprintf("[%s:%i] read_fat(0) FAILED!"); /* Return */ return (size);