[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] gnugo-3.7.10: bad call to fgets
From: |
d binderman |
Subject: |
[gnugo-devel] gnugo-3.7.10: bad call to fgets |
Date: |
Tue, 29 Dec 2009 14:55:43 +0000 |
Hello there,
I just had a look at source code file
gnugo-3.7.10/interface/gtp_examples/metamachine.c,
around line 110 is the code
if (!fgets(client_line, GTP_BUFSIZE, stdin)
but
client_line[128];
and
#define GTP_BUFSIZE 1000
so it seems wrong to me to allow up to 1000 characters into a
buffer of size 128. Suggest code rework.
Regards
David Binderman
_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] gnugo-3.7.10: bad call to fgets,
d binderman <=