diff options
Diffstat (limited to 'src/io.c')
| -rw-r--r-- | src/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -142,5 +142,10 @@ void writeblock(void) { // fprintf(stderr, "writeblock, bufadr = $%04x, len = $%04x\n", bufadr, len); bytes = fwrite(buf, 1, len, out_file); + if(bytes < 0) { + perror(self); /* TODO: out_filename */ + exit(1); + } + bytes_written += bytes; dpoke(buf_len_l, bytes); } |
