diff options
Diffstat (limited to 'apps/codecs/demac')
-rw-r--r-- | apps/codecs/demac/wavwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/demac/wavwrite.c b/apps/codecs/demac/wavwrite.c index 5fb82e148a..5047c4cabc 100644 --- a/apps/codecs/demac/wavwrite.c +++ b/apps/codecs/demac/wavwrite.c | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | demac - A Monkey's Audio decoder | 3 | demac - A Monkey's Audio decoder |
4 | 4 | ||
5 | $Id:$ | 5 | $Id$ |
6 | 6 | ||
7 | Copyright (C) Dave Chapman 2007 | 7 | Copyright (C) Dave Chapman 2007 |
8 | 8 | ||
@@ -57,7 +57,7 @@ int open_wav(struct ape_ctx_t* ape_ctx, char* filename) | |||
57 | int filesize; | 57 | int filesize; |
58 | int bytespersample; | 58 | int bytespersample; |
59 | 59 | ||
60 | fd=creat(filename,0644); | 60 | fd=open(filename, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 0644); |
61 | if (fd < 0) | 61 | if (fd < 0) |
62 | return fd; | 62 | return fd; |
63 | 63 | ||