From 25ddf45689e4753ea2e81d9382569db77af0592d Mon Sep 17 00:00:00 2001 From: Kenny Strawn Date: Sun, 22 Oct 2023 23:13:53 -0700 Subject: [PATCH] Heed @Freax13's advice --- src/fat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fat.rs b/src/fat.rs index aa2a450b..b7a73cbe 100644 --- a/src/fat.rs +++ b/src/fat.rs @@ -26,7 +26,7 @@ pub fn create_fat_filesystem( .truncate(true) .open(out_fat_path) .unwrap(); - let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB; + let fat_size_padded_and_rounded = (((needed_size + 1024 * 64 - 1) / MB + 1) * MB) + MB; fat_file.set_len(fat_size_padded_and_rounded).unwrap(); // choose a file system label