🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #6188

Fix to -n option in xchess

#6188
From: eddins
Date: Fri, 23 Mar 1990 01:33
24 lines
1451 bytes
The "-n" switch in xchess (beep after every move) causes a core dump
if there is only one window.  This is the case when playing gnuchess,
for example.  Apply the following diff to control.c (as distributed
with gnuchess 3.0) to fix the problem.  Note:  please send me mail if
there is a better group to post to about xchess.

30a31
> #include <stdio.h>
237,238c238,245
< 	    XBell(win1->display, 50);
< 	    XBell(win2->display, 50);
---
> 	  if (win1 != NULL)
> 	    {
> 	      XBell(win1->display, 50);
> 	    }
> 	  if (win2 != NULL)
> 	    {
> 	      XBell(win2->display, 50);
> 	    }

Steve Eddins
Georgia Tech, PO 33575, School of Elec Eng, Atlanta, GA  30332-0250
internet: eddins@eedsp.gatech.edu 		uucp:  gatech!eedsp!eddins
Technical Details
Message-ID: <795@eedsp.eedsp.gatech.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!eedsp!trace.eedsp.gatech.edu!eddins

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,c1d1fc37086990a8,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1990-03-23 05:37:43 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!eedsp!trace.eedsp.gatech.edu!eddins
From: eddins@trace.eedsp.gatech.edu
Newsgroups: gnu.chess
Subject: Fix to -n option in xchess
Message-ID: <795@eedsp.eedsp.gatech.edu>
Date: 23 Mar 90 01:33:07 GMT
Sender: news@eedsp.eedsp.gatech.edu
Reply-To: eddins@trace.eedsp.gatech.edu ()
Distribution: gnu
Organization: Georgia Institute of Technology
Lines: 24
Posted: Fri Mar 23 02:33:07 1990