diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index bb10c5f223..85a9deaa8c 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; }