summaryrefslogtreecommitdiff
path: root/games/gnuchess/patches/patch-ac
blob: 46d28f3035134725140a18bb915b4a178128ed31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.4 2000/10/01 04:24:27 jlam Exp $

--- book.c.orig	Sat Oct 23 06:07:21 1999
+++ book.c
@@ -85,7 +85,7 @@
   mcnt = -1;
   side = board.side;
   xside = 1^side;
-  rfp = fopen(BOOKBIN,"r+b");
+  rfp = fopen(BOOKBIN,"rb");	/* don't need to open read/write */
   if (rfp == NULL) {
     if (!(flags & XBOARD))
       fprintf(ofp," no book (%s).\n",BOOKBIN);