cmSystemTools: Flush output buffer for list_item_verbose

When `std::cout` and `FILE *stdout` are used at same time need to
explicitly flush otherwise they can be out of sync.
This commit is contained in:
Dāvis Mosāns authored and Brad King committed 2016-10-13 09:24:45 -04:00
1 parent 2fb8e5b1c4
commit 39b08858f6
1 file changed
+1
+1
View File
@@ -1499,6 +1499,7 @@ void list_item_verbose(FILE* out, struct archive_entry* entry)
{
fprintf(out, " -> %s", archive_entry_symlink(entry));
}
fflush(out);
}
long copy_data(struct archive* ar, struct archive* aw)