From: Steve Langasek <[EMAIL PROTECTED]>
dash dies on sparc with a SIGBUS due to an arithmetic error introduced
with commit 03b4958, this patch fixes it.
---
> Hi Gerrit,
>
> dash 0.5.4-3 dies on sparc with a SIGBUS due to an arithmetic error
> introduced with the patch
> 0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff. The
> attached
> patch fixes the problem.
Thanks for the patch, Steve.
Hi Herbert, I suggest to apply this change from Steve.
Regards, Gerrit.
src/eval.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/eval.c b/src/eval.c
index a8feaa0..fd2c394 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -722,7 +722,7 @@ evalcommand(union node *cmd, int flags)
}
/* Reserve one extra spot at the front for shellexec. */
- argv = nargv = stalloc(sizeof (char *) * (argc + 2)) + 1;
+ argv = nargv = ((char **)stalloc(sizeof (char *) * (argc + 2))) + 1;
for (sp = arglist.list ; sp ; sp = sp->next) {
TRACE(("evalcommand arg: %s\n", sp->text));
*nargv++ = sp->text;
--
1.5.3.4
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]