summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1999-05-07 17:37:08 +0000
committerdes <des@FreeBSD.org>1999-05-07 17:37:08 +0000
commit183c88e4f694c6cf48475a5b714a63b022615381 (patch)
treeda58bd45f542bc87c9225310118ce0927437c10c /sys/kern/init_main.c
parentac6ca602a3ff93e0ff66b3251ee7ecb77d9c3604 (diff)
downloadFreeBSD-src-183c88e4f694c6cf48475a5b714a63b022615381.zip
FreeBSD-src-183c88e4f694c6cf48475a5b714a63b022615381.tar.gz
Nit fix.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 0cfa167..4905649 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
- * $Id: init_main.c,v 1.117 1999/05/03 23:57:19 billf Exp $
+ * $Id: init_main.c,v 1.118 1999/05/05 12:20:23 jb Exp $
*/
#include "opt_devfs.h"
@@ -624,7 +624,7 @@ start_init(p)
p->p_vmspace->vm_ssize = 1;
if ((var = getenv("init_path")) != NULL) {
- strncpy(init_path, var, MAXPATHLEN);
+ strncpy(init_path, var, sizeof init_path);
init_path[sizeof init_path - 1] = 0;
}
OpenPOWER on IntegriCloud