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/f90b16bee53d
branches:  trunk
changeset: 347460:f90b16bee53d
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 1952aa1c0e49 -r f90b16bee53d 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