summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/gets.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-28 02:30:58 +0000
committerderaadt <deraadt@openbsd.org>1996-12-28 02:30:58 +0000
commit7136d63a9925989c47c6b39f50b2df958a6e0aaf (patch)
tree06475be7c73486a5670d7fbf37b71c5a2bd67222 /lib/libc/stdio/gets.c
parentGot an NCR controller too now (diff)
downloadwireguard-openbsd-7136d63a9925989c47c6b39f50b2df958a6e0aaf.tar.xz
wireguard-openbsd-7136d63a9925989c47c6b39f50b2df958a6e0aaf.zip
suggest alternative in ld warn message
Diffstat (limited to 'lib/libc/stdio/gets.c')
-rw-r--r--lib/libc/stdio/gets.c5
1 files 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 <stdio.h>
-__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)