aboutsummaryrefslogtreecommitdiff
path: root/exec/hashexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/hashexec.c')
-rw-r--r--exec/hashexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c
index 4b4ff47e..f4e1f9d3 100644
--- a/exec/hashexec.c
+++ b/exec/hashexec.c
@@ -178,7 +178,7 @@ check_hashbang (struct execdata *e,
arg = p + strspn (p, " \t");
arg_len = interp_len - 1 - (arg - interp_buf); /* without null here */
- interp_len = p + 1 - interp; /* This one includes the null. */
+ interp_len = p - interp; /* This one includes the null. */
if (arg_len == 0)
arg = NULL;