Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You cannot modify dereferenced FILE, this is UB. FILE may also be opaque type so this code may not compile (and in fact it doesn't compile on DragonFlyBSD). freopen is quite enough to do the thing.
- Loading branch information