[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gnuchessx bug



On Mon, Jul 12, 1999 at 06:33:43PM +1000, Anthony Towns wrote:

> gets() is a buffer overrun waiting to happen, btw, and should never be
> used. fgets(buf,length_of_buf,stdin); is generally a drop in replacement.

... apart from the fact that fgets keeps the newline (as mentioned
previously). </Pedantic>

Cheers,
--Andrew


Reply to: