SVN revision: 35883
This commit is contained in:
Cedric BAIL 2008-09-08 11:11:51 +00:00
parent 46b7796946
commit 114c50a297
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ eet_flush2(Eet_File *ef)
int fd;
unlink(ef->path);
fd = open(file, O_CREAT | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
fd = open(ef->path, O_CREAT | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
ef->fp = fdopen(fd, "wb");
if (!ef->fp) return EET_ERROR_NOT_WRITABLE;
fcntl(fileno(ef->fp), F_SETFD, FD_CLOEXEC);