tools.c: break reading cycle if we actually loaded program into memory

This commit is contained in:
Evgeny Sinelnikov 2019-08-29 23:46:14 +04:00
parent 111d828c45
commit d39b85ae32

View File

@ -320,6 +320,8 @@ enum return_type load_ramdisk_fd(int source_fd, unsigned long size)
return RETURN_ERROR;
}
update_progression((int)(bytes_read += actually));
if (bytes_read == size)
break;
}
if (!seems_ok) {