mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-18 21:06:31 +00:00
dos33: dos33_raw: fix bug where it never exited
This commit is contained in:
parent
feea160820
commit
87ad2caad2
@ -59,7 +59,8 @@ int main(int argc, char **argv) {
|
||||
/* write until out of space */
|
||||
while(1) {
|
||||
result=read(file_fd,buffer,256);
|
||||
if (result<0) break;
|
||||
if (result<0) break; /* error */
|
||||
if (result==0) break; /* done */
|
||||
result=write(disk_image_fd,buffer,result);
|
||||
if (result<0) {
|
||||
fprintf(stderr,"Error writing image: %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user