Use freopen instead of fopen for test output
This commit is contained in:
parent
3cf74d2664
commit
c5dd1673af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user