From 7136d63a9925989c47c6b39f50b2df958a6e0aaf Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 28 Dec 1996 02:30:58 +0000 Subject: [PATCH] suggest alternative in ld warn message --- lib/libc/stdio/gets.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c index 1eba8600ac0..1cc13d4d8f4 100644 --- a/lib/libc/stdio/gets.c +++ b/lib/libc/stdio/gets.c @@ -35,12 +35,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gets.c,v 1.2 1996/08/19 08:32:52 tholo Exp $"; +static char rcsid[] = "$OpenBSD: gets.c,v 1.3 1996/12/28 02:30:58 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include -__warn_references(gets, "warning: this program uses gets(), which is unsafe."); +__warn_references(gets, + "warning: gets() is very unsafe; consider using fgets()"); char * gets(buf) -- 2.20.1