Skip to content

Commit

Permalink
Update mkvdisk.py
Browse files Browse the repository at this point in the history
now it writes a single zero byte instead of space when allocating disk space for raw images
  • Loading branch information
maxpat78 committed Jul 5, 2023
1 parent 5e578db commit 7a9698a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FATtools/scripts/mkvdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7a9698a

Please sign in to comment.