Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is this a compiler bug?

Author: Matthias Gemuh

Date: 11:29:32 10/25/03

Go up one level in this thread


>
>void uci_wait_for_command() {
>  char command[10000];
>
>  fgets(command, 10000, stdin);
>  uci_handle_command(command); }
>


Plus '\0', you try to allocate space for 9999 bytes, then you try to stuff
10000 bytes into that space.

/Matthias.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.