summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox_pgn.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.c')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c
index a165e3ee8c..3d699a7c9e 100644
--- a/apps/plugins/chessbox/chessbox_pgn.c
+++ b/apps/plugins/chessbox/chessbox_pgn.c
@@ -670,7 +670,7 @@ void pgn_parse_game(const char* filename,
670 rb->read_line(fhandler, line_buffer, sizeof line_buffer); 670 rb->read_line(fhandler, line_buffer, sizeof line_buffer);
671 } 671 }
672 672
673 loghandler = rb->open(LOG_FILE, O_WRONLY | O_CREAT); 673 loghandler = rb->open(LOG_FILE, O_WRONLY | O_CREAT, 0666);
674 674
675 GNUChess_Initialize(); 675 GNUChess_Initialize();
676 676
@@ -829,7 +829,7 @@ void pgn_store_game(struct pgn_game_node* game){
829 ply_count++; 829 ply_count++;
830 } 830 }
831 831
832 fhandler = rb->open(PGN_FILE, O_WRONLY|O_CREAT|O_APPEND); 832 fhandler = rb->open(PGN_FILE, O_WRONLY|O_CREAT|O_APPEND, 0666);
833 833
834 834
835 /* the first 7 tags are mandatory according to the PGN specification so we 835 /* the first 7 tags are mandatory according to the PGN specification so we