diff options
| -rw-r--r-- | firmware/drivers/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index bb10c5f..85a9dea 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -1725,7 +1725,7 @@ int fat_readwrite( struct fat_file *file, int sectorcount, if (rc < 0) return rc * 10 - 1; - ((char*)buf) += count * SECTOR_SIZE; + buf = (char *)buf + count * SECTOR_SIZE; first = sector; } |