summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-03-09 12:05:21 +0000
committermycroft <mycroft@NetBSD.org>1995-03-09 12:05:21 +0000
commit2f805fa51b58922cecaccfd240c0180b7eb6468a (patch)
tree0ba7838b7d0929460d9f5719d9689f6cd3d81665 /sys/kern/exec_script.c
parentd004d5d34c558fa4d71cea0d61dfa1c3933cbf3b (diff)
copy*str() should use size_t.
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index 7c23177935e..d414a23aa49 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_script.c,v 1.10 1994/12/04 03:10:40 mycroft Exp $ */
+/* $NetBSD: exec_script.c,v 1.11 1995/03/09 12:05:47 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -202,7 +202,8 @@ check_shell:
if ((epp->ep_flags & EXEC_HASFD) == 0) {
#endif
/* normally can't fail, but check for it if diagnostic */
- error = copyinstr(epp->ep_name, *tmpsap++, MAXPATHLEN, 0);
+ error = copyinstr(epp->ep_name, *tmpsap++, MAXPATHLEN,
+ (size_t *)0);
#ifdef DIAGNOSTIC
if (error != 0)
panic("exec_script: copyinstr couldn't fail\n");