summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/r_data.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-11-07 11:45:20 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-11-07 11:45:20 +0000
commit930a8a5050e46fb1c190b701d4913466beeb76e4 (patch)
treea73696c6cdc3e1a8afcb9cce2d1b5c1c2c87831c /apps/plugins/doom/r_data.c
parent3772a0872989447a275073eec8d9ced3e38d03a5 (diff)
downloadrockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.gz
rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.zip
set mode argument for open() where O_CREAT flag is/can be set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/r_data.c')
-rw-r--r--apps/plugins/doom/r_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/doom/r_data.c b/apps/plugins/doom/r_data.c
index f6328dac17..17800f231c 100644
--- a/apps/plugins/doom/r_data.c
+++ b/apps/plugins/doom/r_data.c
@@ -721,7 +721,7 @@ cache;
721 721
722 // Use cached translucency filter if it's available 722 // Use cached translucency filter if it's available
723 723
724 if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT) , 1 : 724 if ((cachefd<0) ? cachefd = open(GAMEBASE"tranmap.dat",O_WRONLY | O_CREAT, 0666) , 1 :
725 read(cachefd, &cache, sizeof(cache)) != sizeof(cache) || 725 read(cachefd, &cache, sizeof(cache)) != sizeof(cache) ||
726 cache.pct != tran_filter_pct || 726 cache.pct != tran_filter_pct ||
727 memcmp(cache.playpal, playpal, sizeof cache.playpal) || 727 memcmp(cache.playpal, playpal, sizeof cache.playpal) ||