summaryrefslogtreecommitdiff
path: root/apps/plugins/jewels.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/jewels.c')
-rw-r--r--apps/plugins/jewels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 6bed9bf827..c2340aa557 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -498,7 +498,7 @@ static void jewels_savegame(struct game_context* bj)
498{ 498{
499 int fd; 499 int fd;
500 /* write out the game state to the save file */ 500 /* write out the game state to the save file */
501 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); 501 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT, 0666);
502 if(fd < 0) return; 502 if(fd < 0) return;
503 503
504 rb->write(fd, &bj->tmp_type, sizeof(bj->tmp_type)); 504 rb->write(fd, &bj->tmp_type, sizeof(bj->tmp_type));