From: deraadt Date: Sat, 28 Dec 1996 02:30:58 +0000 (+0000) Subject: suggest alternative in ld warn message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7136d63a9925989c47c6b39f50b2df958a6e0aaf;p=openbsd suggest alternative in ld warn message --- 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)