summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
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");