From bd22513c86b7a00c0c25f2cc6f5dfbcf67076da0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 14 Mar 2019 01:26:16 +0100 Subject: Fix creation of tmpfile in windows (hopefully. deletion still fails) --- src/cc4group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cc4group.c') 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 "\""); -- cgit v1.2.3-54-g00ecf