diff options
author | Andre Heider | 2009-02-21 12:26:10 +0000 |
---|---|---|
committer | Andre Heider | 2009-02-21 12:26:10 +0000 |
commit | 1cbe5c327dce7fe1a03d1917e171415921bcdcd6 (patch) | |
tree | 369c3f4e5ca55b9d722af4ad691a7db6641e530b /engines/sci/engine | |
parent | 3988062776a0b1c3775807b8f733382c4c1d838f (diff) | |
download | scummvm-rg350-1cbe5c327dce7fe1a03d1917e171415921bcdcd6.tar.gz scummvm-rg350-1cbe5c327dce7fe1a03d1917e171415921bcdcd6.tar.bz2 scummvm-rg350-1cbe5c327dce7fe1a03d1917e171415921bcdcd6.zip |
replace obsolete creat() with open()
svn-id: r38690
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index e246af9094..8f260fae65 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -108,7 +108,7 @@ static FILE *f_open_mirrored(EngineState *s, char *fname) { #ifdef _MSC_VER fd = _open(fname, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE); #else - fd = creat(fname, 0600); + fd = open(fname, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE); #endif if (!IS_VALID_FD(fd) && buf) { @@ -486,7 +486,7 @@ reg_t kCheckFreeSpace(EngineState *s, int funct_nr, int argc, reg_t *argv) { ++testpath[pathlen - 1]; } - fd = creat(testpath, 0600); + fd = open(testpath, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE); if (!IS_VALID_FD(fd)) { warning("Could not test for disk space: %s", strerror(errno)); |