From 7a9698aa77d5b7f630fb6423fd40511e6dc31509 Mon Sep 17 00:00:00 2001 From: maxpat78 Date: Wed, 5 Jul 2023 08:41:50 +0200 Subject: [PATCH] Update mkvdisk.py now it writes a single zero byte instead of space when allocating disk space for raw images --- FATtools/scripts/mkvdisk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FATtools/scripts/mkvdisk.py b/FATtools/scripts/mkvdisk.py index bbbe335..474f5e7 100644 --- a/FATtools/scripts/mkvdisk.py +++ b/FATtools/scripts/mkvdisk.py @@ -49,7 +49,7 @@ def call(args): s = args.image_file.lower() if not s.endswith('.vhd') and not s.endswith('.vhdx') and not s.endswith('.vdi') and not s.endswith('.vmdk'): print("Creating RAW disk image '%s'... "%args.image_file, end='') - f=open(args.image_file, 'wb');f.seek(fssize-1);f.write(b' ');f.close() + f=open(args.image_file, 'wb');f.seek(fssize-1);f.write(b'\x00');f.close() print("OK!") sys.exit(0)