From owner-freebsd-questions Thu Mar 6 16:35:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA24713 for questions-outgoing; Thu, 6 Mar 1997 16:35:34 -0800 (PST) Received: from daisy.snet.net (daisy.snet.net [204.60.7.85]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA24705 for ; Thu, 6 Mar 1997 16:35:28 -0800 (PST) Received: from default (hrfr03-sh4-port219.snet.net [204.60.8.219]) by daisy.snet.net (8.8.5/8.8.5/SNET-1.3.0.1) with ESMTP id TAA12071; Thu, 6 Mar 1997 19:34:49 -0500 (EST) Message-Id: <199703070034.TAA12071@daisy.snet.net> From: "Jeffrey M. Metcalf" To: "Jeffrey M Metcalf" , "FreeBSD questions" Subject: What does gets() unsafe question mean? Date: Thu, 6 Mar 1997 19:35:07 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, I recently wrote a little C program which uses the stdio.h function gets(). I compiled and ran it under FreeBSD and I get.. warning: this program uses gets(), which is unsafe. What exactly does this mean? Why is it unsafe? If possible, can any replies be sent as an e-mail to the above address? Thank You, JM -- ----- Jeffrey M. Metcalf metcalf@snet.net http://ruddles.stat.uconn.edu/~jeff