Skip to content

Commit 7a7af4e

Browse files
committed
Call flush_word to ensure all file data is output.
1 parent 7e76fbb commit 7a7af4e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ static void
211211
close_file (void)
212212
{
213213
fprintf (debug, "\nCLOSE %s", file_path);
214+
flush_word (output);
214215
fclose (output);
215216
output = NULL;
216217
utimes (file_path, timestamp);

tito.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ close_file (word_t x)
265265
{
266266
checksum &= 0777777777777;
267267
fprintf (info, "Checksum: %012llo (%012llo)\n", checksum, x);
268+
flush_word (output);
268269
fclose (output);
269270
output = NULL;
270271
utimes (file_path, timestamp);

0 commit comments

Comments
 (0)