*BSD News Article 36945


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!caen!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!noc.near.net!atria.com!jtk
From: jtk@atria.com (John Kohl)
Subject: Re: gets() warning?
In-Reply-To: perry@jpunix.com's message of 14 Oct 1994 12:11:06 -0500
Message-ID: <CxoF09.Et4@atria.com>
Sender: news@atria.com
Nntp-Posting-Host: banana.atria.com
Organization: Atria Software, Inc.
References: <37me3a$efl@jpunix.com>
Date: Fri, 14 Oct 1994 18:50:32 GMT
Lines: 21

>>>>> "JP" == John A Perry <perry@jpunix.com> writes:
In article <37me3a$efl@jpunix.com> perry@jpunix.com (John A. Perry) writes:

JP> 	I have several applications that use the gets() function. I'm sure
JP> as everyone is aware, every time gets is called, it displays an error
JP> message "warning: this program uses gets(), which is unsafe." After seeing
JP> it literally hundreds of times, I'm getting tired of seeing it and it
JP> makes the application look tacky. Is there anyway to suppress this
JP> message? 

Assuming you're using some version of NetBSD-current, you should
compile/fetch an updated C library (and probably also the compiler
suite).  Recent NetBSD-current systems will spit out the warning at
program link time, and not at program runtime.


--
John Kohl <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing:	Atria Software
---------
What are you pretending not to know?