]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - util.c
First draft of handling the [frame,think] notation
[xonotic/gmqcc.git] / 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;
-    if (fopen_s(&out, file, mode) != 0)
+    if (fopen_s(&out, filename, mode) != 0)
         return NULL;
     return out;
 #else
-    return fopen(file, mode);
+    return fopen(filename, mode);
 #endif
 }