From: divverent Date: Fri, 7 Aug 2009 04:35:21 +0000 (+0000) Subject: fix use of variable name "dir" X-Git-Tag: xonotic-v0.1.0preview~1528 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d00b29aba04b8170380b182e78edfe0d6094df5b;p=xonotic%2Fdarkplaces.git fix use of variable name "dir" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9101 d7cf8633-e32d-0410-b094-e92efae38249 --- 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) {