]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
fix use of variable name "dir"
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index 18c98c6be5dcad6928528e8279ba56b6b72c9743..c7721ef2efe75b8c1278ec335a5b77d0a3ece7a5 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1575,9 +1575,9 @@ void FS_Init (void)
                {
 #if _MSC_VER >= 1400
                        int fd;
-                       _sopen_s(&fd, va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT, _SH_DENYNO, _S_IREAD | _S_IWRITE); // note: no O_TRUNC here!
+                       _sopen_s(&fd, va("%s%s/config.cfg", fs_basedir, gamedirname1), O_WRONLY | O_CREAT, _SH_DENYNO, _S_IREAD | _S_IWRITE); // note: no O_TRUNC here!
 #else
-                       int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT, 0666); // note: no O_TRUNC here!
+                       int fd = open (va("%s%s/config.cfg", fs_basedir, gamedirname1), O_WRONLY | O_CREAT, 0666); // note: no O_TRUNC here!
 #endif
                        if(fd >= 0)
                        {