diff options
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r-- | apps/plugins/blackjack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index 1af26f290f..7b3dbef805 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c | |||
@@ -871,7 +871,7 @@ static void blackjack_savegame(struct game_context* bj) { | |||
871 | if(!resume) | 871 | if(!resume) |
872 | return; | 872 | return; |
873 | /* write out the game state to the save file */ | 873 | /* write out the game state to the save file */ |
874 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); | 874 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT, 0666); |
875 | if(fd < 0) | 875 | if(fd < 0) |
876 | return; | 876 | return; |
877 | rb->write(fd, bj, sizeof(struct game_context)); | 877 | rb->write(fd, bj, sizeof(struct game_context)); |