Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Strip newline from the gateway correctly.
details: https://anonhg.NetBSD.org/src/rev/fe790d41f2b1
branches: trunk
changeset: 332258:fe790d41f2b1
user: roy <roy%NetBSD.org@localhost>
date: Sat Sep 13 09:30:30 2014 +0000
description:
Strip newline from the gateway correctly.
diffstat:
usr.sbin/sysinst/net.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ce0f4b11bd5b -r fe790d41f2b1 usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c Sat Sep 13 08:15:43 2014 +0000
+++ b/usr.sbin/sysinst/net.c Sat Sep 13 09:30:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.11 2014/09/13 01:11:58 roy Exp $ */
+/* $NetBSD: net.c,v 1.12 2014/09/13 09:30:30 roy Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -626,7 +626,7 @@
strlcpy(net_defroute, textbuf,
sizeof net_defroute);
free(textbuf);
- if ((nl = strchr(net_namesvr, '\n')))
+ if ((nl = strchr(net_defroute, '\n')))
*nl = '\0';
/* pull nameserver info out of /etc/resolv.conf */
Home |
Main Index |
Thread Index |
Old Index