mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
Fix short block writes on RK06/RK07 devices to write zero filled buffer data. (Oleg Safiullin)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user