file_systems/fat: Fix usage of sizeof()

Fix suspicious usage of 'sizeof' with a numeric constant
as parameter.
Pointed out by cppcheck.

Change-Id: Icf43843bb92b3db0634c20ddce38e2fe1099c552
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2954
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Murai Takashi
2020-06-27 15:09:04 +00:00
committed by Adrien Destugues
parent 1a83eab65b
commit c23cd33c75
@@ -635,7 +635,7 @@ dosfs_uninitialize(int fd, partition_id partitionID, off_t partitionSize,
char bootsector[512];
memset(bootsector,0x00,512);
if (write_pos(fd, 512, bootsector, sizeof(512)) < 0)
if (write_pos(fd, 512, bootsector, sizeof(bootsector)) < 0)
return errno;
update_disk_device_job_progress(job, 1.0);