From owner-freebsd-hackers Tue Oct 28 23:06:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA25865 for hackers-outgoing; Tue, 28 Oct 1997 23:06:19 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from wired.ctech.ac.za (wired.ctech.ac.za [155.238.4.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA25858 for ; Tue, 28 Oct 1997 23:06:09 -0800 (PST) (envelope-from jacques@wired.ctech.ac.za) Received: from wired.ctech.ac.za (localhost [127.0.0.1]) by wired.ctech.ac.za (8.8.5/8.8.5) with SMTP id JAA12794 for ; Wed, 29 Oct 1997 09:06:27 +0200 (SAT) Message-ID: <3456E072.794BDF32@wired.ctech.ac.za> Date: Wed, 29 Oct 1997 09:06:26 +0200 From: Jacques Hugo X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.2.1-RELEASE i386) MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: gets Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi there ... Whenever I use gets(3) to read from stdin, I get warning: this program uses gets(), which is unsafe. The program works ok, no problem there. But I don't like that error. Is there someting else I can use, or maybe a work-around to read from stdin. Thanks -Jacuqes ------------------------------------------------------ The box said "Requires Windows 3.1 or better" ... so I got BSD System Administrator | Jacques Hugo UNIX Systems | jacques@wired.ctech.ac.za Cape Technikon | +27-21-4603584 ------------------------------------------------------