Module Name: src Committed By: martin Date: Tue Jun 18 10:45:27 UTC 2019
Modified Files: src/usr.sbin/sysinst: net.c Log Message: Fix buffer size To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 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.27 src/usr.sbin/sysinst/net.c:1.28 --- src/usr.sbin/sysinst/net.c:1.27 Wed Jun 12 06:20:18 2019 +++ src/usr.sbin/sysinst/net.c Tue Jun 18 10:45:27 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: net.c,v 1.27 2019/06/12 06:20:18 martin Exp $ */ +/* $NetBSD: net.c,v 1.28 2019/06/18 10:45:27 martin Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -793,7 +793,7 @@ done: net_dev, net_ip, net_srv_ip); strcpy(sl_flags, "-s 115200 -l /dev/tty00"); msg_prompt_win(MSG_slattach, -1, 12, 70, 0, - sl_flags, sl_flags, 255); + sl_flags, sl_flags, sizeof sl_flags); /* XXX: wtf isn't run_program() used here? */ pid = fork();