Use freopen instead of fopen for test output
This commit is contained in:
@@ -67,7 +67,7 @@ main(int argc, char **argv) {
|
|||||||
perror("[!] can't open file");
|
perror("[!] can't open file");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
fout = fopen(outfile, "w");
|
fout = freopen(outfile, "w", stdout);
|
||||||
if (!fout) {
|
if (!fout) {
|
||||||
perror("[!] can't open file");
|
perror("[!] can't open file");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Reference in New Issue
Block a user