]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix use of variable name "dir"
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 7 Aug 2009 04:35:21 +0000 (04:35 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 7 Aug 2009 04:35:21 +0000 (04:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9101 d7cf8633-e32d-0410-b094-e92efae38249

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)
                        {