]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
-_- file->filename
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 12:05:04 +0000 (14:05 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 12:05:04 +0000 (14:05 +0200)
util.c

diff --git a/util.c b/util.c
index d825ab2f5715d72cb57d7cb71ec8c2104097f616..58fa8fb59bb37e3e0c17c4e738412cd036ff45c1 100644 (file)
--- a/util.c
+++ b/util.c
@@ -403,11 +403,11 @@ FILE *util_fopen(const char *filename, const char *mode)
 {
 #ifdef WIN32
     FILE *out;
 {
 #ifdef WIN32
     FILE *out;
-    if (fopen_s(&out, file, mode) != 0)
+    if (fopen_s(&out, filename, mode) != 0)
         return NULL;
     return out;
 #else
         return NULL;
     return out;
 #else
-    return fopen(file, mode);
+    return fopen(filename, mode);
 #endif
 }
 
 #endif
 }