diff --git a/tools/qfcc/source/cpp.c b/tools/qfcc/source/cpp.c index eed8c4026..e1bc0a030 100644 --- a/tools/qfcc/source/cpp.c +++ b/tools/qfcc/source/cpp.c @@ -282,7 +282,7 @@ preprocess_file (const char *filename) else if (options.save_temps) return fopen (tempname->str, "rt"); else { - return fdopen (tempfd, "r+t"); + return fdopen (tempfd, "rt"); } #endif }