Use freopen instead of fopen for test output

This commit is contained in:
Ivan Baravy 2022-02-09 22:45:17 +03:00
parent 3cf74d2664
commit c5dd1673af

View File

@ -67,7 +67,7 @@ main(int argc, char **argv) {
perror("[!] can't open file");
exit(1);
}
fout = fopen(outfile, "w");
fout = freopen(outfile, "w", stdout);
if (!fout) {
perror("[!] can't open file");
exit(1);