Skip to content

Commit 3cf26fa

Browse files
committed
fix: set stdout to non buffering mode
1 parent 5435114 commit 3cf26fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ int main(int argc, char *argv[]) {
334334
}
335335
}
336336
if (drive == -1) usage();
337+
338+
setvbuf(stdout, NULL, _IONBF, BUFSIZ);
339+
337340
ptr = init_disk(drive);
338341
if ((int)ptr < 0) {
339342
if ((int)ptr == ERROR_BAD_FAT_SIZE)

0 commit comments

Comments
 (0)