diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-03-14 01:26:16 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-03-14 01:26:16 +0100 |
| commit | bd22513c86b7a00c0c25f2cc6f5dfbcf67076da0 (patch) | |
| tree | 6a13805f0f41e7ffb4e152d6088f4803dec5d277 /src/cc4group.c | |
| parent | 5e4b1548315976918cd755eca72ec47a53096be4 (diff) | |
| download | cc4group-bd22513c86b7a00c0c25f2cc6f5dfbcf67076da0.tar.gz cc4group-bd22513c86b7a00c0c25f2cc6f5dfbcf67076da0.zip | |
Fix creation of tmpfile in windows (hopefully. deletion still fails)
Diffstat (limited to 'src/cc4group.c')
| -rw-r--r-- | src/cc4group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c index fb2036e..368b6aa 100644 --- a/src/cc4group.c +++ b/src/cc4group.c @@ -249,7 +249,7 @@ static void* cc4group_createTmpMemoryFile(CC4Group* const this, const size_t siz { void* ret; #define TMP_FILE "cc4group.tmp" - int tmpFile = open(TMP_FILE, O_CREAT | O_BINARY | O_RDWR | O_TRUNC | O_EXCL, 0600); + int tmpFile = open(TMP_FILE, O_CREAT | O_BINARY | O_RDWR | O_EXCL, 0600); if(tmpFile == -1) { SET_ERRNO_ERROR("open: Opening tmp file \"" TMP_FILE "\""); |
