From owner-freebsd-questions Sat Jun 26 18:38: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ucsu.Colorado.EDU (ucsu.Colorado.EDU [128.138.129.83]) by hub.freebsd.org (Postfix) with ESMTP id 3905E14D30 for ; Sat, 26 Jun 1999 18:38:06 -0700 (PDT) (envelope-from doranj@ucsu.Colorado.EDU) Received: (from doranj@localhost) by ucsu.Colorado.EDU (8.9.3/8.9.3/ITS-5.0/standard) id TAA20837 for freebsd-questions@freebsd.org; Sat, 26 Jun 1999 19:38:06 -0600 (MDT) From: Jonathon Doran Message-Id: <199906270138.TAA20837@ucsu.Colorado.EDU> Subject: Re: Replacement for gets() To: freebsd-questions@freebsd.org Date: Sat, 26 Jun 1999 19:38:06 -0600 (MDT) In-Reply-To: <19990626201956.A1542@gforce.johnson.home> from "Glenn Johnson" at Jun 26, 99 08:19:56 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Programs that use gets() spit out the following warning: > > warning: this program uses gets(), which is unsafe. > > What is the proper function to use in place of gets()? fgets() The warning appears to be working well. Jon Doran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message