From 6bf0d7402fe2df7172912328591b161de98b025f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 18 Oct 1995 08:23:00 +0000 Subject: (check_hashbang): Copy passed args from the right place. --- exec/hashexec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exec') diff --git a/exec/hashexec.c b/exec/hashexec.c index b7fc591a..614845a5 100644 --- a/exec/hashexec.c +++ b/exec/hashexec.c @@ -340,7 +340,8 @@ check_hashbang (struct execdata *e, memcpy (p, file_name, namelen); p += namelen; if (other_args) - memcpy (p, other_args, argvlen - (other_args - new_argv)); + memcpy (p, other_args - new_argv + argv, + argvlen - (other_args - new_argv)); } else { -- cgit v1.2.3