summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r--apps/plugins/bubbles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index a3de9d2511..514621224a 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -2212,7 +2212,7 @@ static void bubbles_savedata(void) {
2212 if (last_highlevel >= highlevel) /* no need to save */ 2212 if (last_highlevel >= highlevel) /* no need to save */
2213 return; 2213 return;
2214 2214
2215 fd = rb->open(DATA_FILE, O_WRONLY|O_CREAT); 2215 fd = rb->open(DATA_FILE, O_WRONLY|O_CREAT, 0666);
2216 if (fd < 0) return; 2216 if (fd < 0) return;
2217 2217
2218 rb->write(fd, &highlevel, sizeof(highlevel)); 2218 rb->write(fd, &highlevel, sizeof(highlevel));
@@ -2252,7 +2252,7 @@ static void bubbles_savegame(struct game_context* bb) {
2252 if (!resume) /* nothing to save */ 2252 if (!resume) /* nothing to save */
2253 return; 2253 return;
2254 /* write out the game state to the save file */ 2254 /* write out the game state to the save file */
2255 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); 2255 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT, 0666);
2256 if (fd < 0) 2256 if (fd < 0)
2257 { 2257 {
2258 rb->splash(HZ/2, "Failed to save game"); 2258 rb->splash(HZ/2, "Failed to save game");