Module Name:    src
Committed By:   roy
Date:           Sat Sep 13 09:30:30 UTC 2014

Modified Files:
        src/usr.sbin/sysinst: net.c

Log Message:
Strip newline from the gateway correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/sysinst/net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/net.c
diff -u src/usr.sbin/sysinst/net.c:1.11 src/usr.sbin/sysinst/net.c:1.12
--- src/usr.sbin/sysinst/net.c:1.11	Sat Sep 13 01:11:58 2014
+++ src/usr.sbin/sysinst/net.c	Sat Sep 13 09:30:30 2014
@@ -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 @@ again:
 				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 */

Reply via email to