Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
Disabled stdio buffering of src & dst.
  • Loading branch information
a-p-jo authored Jan 15, 2023
1 parent b483dbd commit 4ab3b99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ int main(int argc, char **argv)
), exit(EXIT_FAILURE);
}

/* filecopy() does it's own buffering so disable stdio buffering */
setbuf(src, NULL), setbuf(dst, NULL);
filecopy_result res = filecopy(dst, src, 0, print_progress);
switch (res.err) {
case filecopy_error_none : {
Expand Down

0 comments on commit 4ab3b99

Please sign in to comment.