tools.c: break reading cycle if we actually loaded program into memory
This commit is contained in:
parent
111d828c45
commit
d39b85ae32
2
tools.c
2
tools.c
@ -320,6 +320,8 @@ enum return_type load_ramdisk_fd(int source_fd, unsigned long size)
|
|||||||
return RETURN_ERROR;
|
return RETURN_ERROR;
|
||||||
}
|
}
|
||||||
update_progression((int)(bytes_read += actually));
|
update_progression((int)(bytes_read += actually));
|
||||||
|
if (bytes_read == size)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!seems_ok) {
|
if (!seems_ok) {
|
||||||
|
Loading…
Reference in New Issue
Block a user