aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 2423024..a119604 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -1329,7 +1329,8 @@ wild_update(int style)
msnprintf(fname, sizeof fname, "%s/wild/%d", board_dir, style);
- if ((fd = open(fname, g_open_flags[1], g_open_modes)) < 0) {
+ if ((fd = open(fname, g_open_flags[OPFL_WRITE],
+ g_open_modes)) < 0) {
warn("%s: can't write file name: %s", __func__, fname);
return;
} else if ((fp = fdopen(fd, "w")) == NULL) {