summaryrefslogtreecommitdiff
path: root/apps/plugins/frotz/fastmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/frotz/fastmem.c')
-rw-r--r--apps/plugins/frotz/fastmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/frotz/fastmem.c b/apps/plugins/frotz/fastmem.c
index ba0c95f5ce..ce424af1f2 100644
--- a/apps/plugins/frotz/fastmem.c
+++ b/apps/plugins/frotz/fastmem.c
@@ -837,7 +837,7 @@ void z_save (void)
837 837
838 /* Open auxilary file */ 838 /* Open auxilary file */
839 839
840 if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC)) < 0) 840 if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
841 goto finished; 841 goto finished;
842 842
843 /* Write auxilary file */ 843 /* Write auxilary file */
@@ -859,7 +859,7 @@ void z_save (void)
859 859
860 /* Open game file */ 860 /* Open game file */
861 861
862 if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC)) < 0) 862 if ((gfp = rb->open (new_name, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
863 goto finished; 863 goto finished;
864 864
865 success = save_quetzal (gfp, story_fp); 865 success = save_quetzal (gfp, story_fp);