Subject: Re: Substitution of gets
To: Allen Briggs <briggs@wasabisystems.com>
From: Takuji Matsugaki <GBH01467@nifty.com>
List: port-mac68k
Date: 06/11/2002 13:24:52
Thank you, Allen.
According to your information, the warning disappeared.
> For NetBSD, you could try tech-userlevel@netbsd.org, but I do not
> know a good general-purpose programming list.
>
> fgets() is what one usually uses instead. The primary problem with
> gets() is that it is subject to buffer overflows. It is possible to
> write safe code with fgets().
>
> -allen
>
> --
> Allen Briggs briggs@wasabisystems.com
> http://www.wasabisystems.com/ Quality NetBSD CDs, Sales, Support, Service
> NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...
--
Takuji Matsugaki
email: GBH01467@nifty.com