summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-28 02:30:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-28 02:30:59 +0000
commitf7adec460a72fef02dfaad6fd8f2f4cbf6283fa6 (patch)
treebfd5a6b8c1a788b4d7f7524b1494e5af3fa3c2cf /lib/libc/stdio
parent55d5664798405ba3001220b3a5f3222b99072081 (diff)
suggest alternative in ld warn message
Diffstat (limited to 'lib/libc/stdio')
-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)