From d00b29aba04b8170380b182e78edfe0d6094df5b Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 7 Aug 2009 04:35:21 +0000 Subject: [PATCH] fix use of variable name "dir" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9101 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs.c b/fs.c index 18c98c6b..c7721ef2 100644 --- 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) { -- 2.39.2