no O_APPEND here
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Jan 2008 10:46:50 +0000 (10:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Jan 2008 10:46:50 +0000 (10:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7936 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 2454bea..186c06a 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1039,7 +1039,7 @@ void FS_AddGameHierarchy (const char *dir)
 #ifdef WIN32
        if(!COM_CheckParm("-appdata"))
        {
-               int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT | O_APPEND, 0666);
+               int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT, 0666); // note: no O_TRUNC here!
                if(fd >= 0)
                {
                        close(fd);