*BSD News Article 33268


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:11812 comp.os.386bsd.development:2341 comp.os.386bsd.misc:2827
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!solaris.cc.vt.edu!csugrad.cs.vt.edu!not-for-mail
From: jaitken@csugrad.cs.vt.edu (Jeff Aitken)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.development,comp.os.386bsd.misc
Subject: Re: Why does FreeBSD 1.1.5 say gets() is unsafe?
Date: 25 Jul 1994 21:15:40 -0400
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
Lines: 18
Message-ID: <311o3s$fjo@csugrad.cs.vt.edu>
References: <30lrf3$2ii@acmez.gatech.edu> <30mcrm$67t@darkstar.UCSC.EDU> <ASAMI.94Jul25154929@forgery.cs.berkeley.edu>
Reply-To: jaitken@vt.edu
NNTP-Posting-Host: csugrad.cs.vt.edu
X-Newsreader: TIN [version 1.2 PL2]

Satoshi ASAMI (asami@cs.berkeley.edu) wrote:

: You are following up the wrong post.  I'm the one who said gets() is
: inherently unsafe, then someone said it's only that sendmail was badly
: written.  I know that we should use fgets() instead of gets(), and so
: do most other people (and it's already mentioned earlier in this
: thread, I believe).

Sorry, news expires quickly here (or I just plain missed the original
message).  

Jeff

-- 
Jeff Aitken						 jaitken@vt.edu

   A witty saying proves nothing, but saying something stupid gets
                          peoples' attention