mirror of
https://github.com/dkgrizzly/GreenSCSI.git
synced 2024-12-26 16:29:45 +00:00
File allocation fix
mkimg would create files 1/1048576 in size compared to the request.
This commit is contained in:
parent
cf468bcbde
commit
5aeb32e928
@ -1196,7 +1196,7 @@ void makeimagecmd(int argc, char **argv) {
|
||||
Serial.printf(": Unable to open '%s'.\r\n", tmp_path);
|
||||
} else {
|
||||
// Take advantage of our cylinders being 1MB
|
||||
if(!file.preAllocate(cyl)) {
|
||||
if(!file.preAllocate(fileSize)) {
|
||||
file.close();
|
||||
sd.remove(tmp_path+3);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user