summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/g_game.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/g_game.c
parent3772a0872989447a275073eec8d9ced3e38d03a5 (diff)
downloadrockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.zip
rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.gz
rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.bz2
rockbox-930a8a5050e46fb1c190b701d4913466beeb76e4.tar.xz
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/g_game.c')
-rw-r--r--apps/plugins/doom/g_game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c
index f970b66..8aab9fc 100644
--- a/apps/plugins/doom/g_game.c
+++ b/apps/plugins/doom/g_game.c
@@ -2770,7 +2770,7 @@ boolean G_CheckDemoStatus (void)
int endtime = I_GetTime ();
// killough -- added fps information and made it work for longer demos:
unsigned realtics = endtime-starttime;
- int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT);
+ int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT,0666);
fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second",
(unsigned) gametic, realtics,
(unsigned) gametic * TICRATE/ realtics);