~ubuntu-branches/ubuntu/intrepid/dash/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/diff/0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2007-12-14 12:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071214123115-128xmgqk7q9d6qer
Tags: 0.5.4-3ubuntu2
Fix unaligned trap on sparc that broke our own postrm, and the buildds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
-       argv = nargv = stalloc(sizeof (char *) * (argc + 1));
56
56
+       /* Reserve one extra spot at the front for shellexec. */
57
 
+       argv = nargv = stalloc(sizeof (char *) * (argc + 2)) + 1;
 
57
+       argv = nargv = ((char **)stalloc(sizeof (char *) * (argc + 2))) + 1;
58
58
        for (sp = arglist.list ; sp ; sp = sp->next) {
59
59
                TRACE(("evalcommand arg: %s\n", sp->text));
60
60
                *nargv++ = sp->text;