mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 07:40:35 +00:00
Fix short block writes on RK06/RK07 devices to write zero filled buffer data. (Oleg Safiullin)
This commit is contained in:
parent
eb921d2ea4
commit
43e5647e96
@ -1144,7 +1144,7 @@ switch (fnc) { /* case on function */
|
||||
for (i = wc; i < awc; i++) /* fill buf */
|
||||
hkxb[i] = 0;
|
||||
if (wc && !err) { /* write buf */
|
||||
fxwrite (hkxb, sizeof (uint16), wc, uptr->fileref);
|
||||
fxwrite (hkxb, sizeof (uint16), awc, uptr->fileref);
|
||||
err = ferror (uptr->fileref);
|
||||
}
|
||||
} /* end if wr */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user