summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/chessbox.c')
-rw-r--r--apps/plugins/chessbox/chessbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index 72a8b238a8..45f052d30a 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -275,7 +275,7 @@ void cb_saveposition ( void ) {
275 275
276 rb->splash ( 0 , "Saving position" ); 276 rb->splash ( 0 , "Saving position" );
277 277
278 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); 278 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT, 0666);
279 279
280 computer++; rb->write(fd, &(computer), sizeof(computer)); computer--; 280 computer++; rb->write(fd, &(computer), sizeof(computer)); computer--;
281 opponent++; rb->write(fd, &(opponent), sizeof(opponent)); opponent--; 281 opponent++; rb->write(fd, &(opponent), sizeof(opponent)); opponent--;