[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] a bug (insignificant) - v3.2
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] a bug (insignificant) - v3.2 |
Date: |
Mon, 24 Jun 2002 16:46:12 +0200 (CEST) |
Dear Paul Pogonyshev,
> command
> boardsize n
> where n is 2-4 or 20-25 leads to abnormal program termination
Thanks for pointing this out.
Dan or Gunnar, could you please add this to CVS?
Arend
Index: interface/play_ascii.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/play_ascii.c,v
retrieving revision 1.17
diff -u -r1.17 play_ascii.c
--- interface/play_ascii.c 12 Apr 2002 14:23:54 -0000 1.17
+++ interface/play_ascii.c 24 Jun 2002 14:46:18 -0000
@@ -660,7 +660,7 @@
printf("\nInvalid command syntax!\n");
break;
}
- if (num < 2 || num > 25) {
+ if (num < MIN_BOARD || num > MAX_BOARD) {
printf("\nInvalid board size: %d\n", num);
break;
}