Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa PR 51200 gets in libsa considered harmful: rem...



details:   https://anonhg.NetBSD.org/src/rev/184f3b64bbac
branches:  trunk
changeset: 817602:184f3b64bbac
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Aug 27 06:31:42 2016 +0000

description:
PR 51200 gets in libsa considered harmful: remove gets() from libsa.

diffstat:

 sys/lib/libsa/gets.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d6a84fda0055 -r 184f3b64bbac sys/lib/libsa/gets.c
--- a/sys/lib/libsa/gets.c      Sat Aug 27 05:52:43 2016 +0000
+++ b/sys/lib/libsa/gets.c      Sat Aug 27 06:31:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gets.c,v 1.13 2016/06/11 06:20:11 dholland Exp $       */
+/*     $NetBSD: gets.c,v 1.14 2016/08/27 06:31:42 dholland Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -33,11 +33,13 @@
 
 #include "stand.h"
 
+#if 0 /* harmful */
 void
 gets(char *buf)
 {
        kgets(buf, (size_t)-1);
 }
+#endif
 
 void
 kgets(char *buf, size_t size)



Home | Main Index | Thread Index | Old Index