aboutsummaryrefslogtreecommitdiffstats
path: root/main/make/use-malloc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-18 13:12:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-18 13:12:32 +0000
commit4b09bbb9e2e79afdb8264c4d56361ca5b8756f30 (patch)
tree6d2191ae6dd7448c36c57403b2ac2dc83ce604f7 /main/make/use-malloc.patch
parentb6709fdde1a36e6d9c14f9af122179f123450ff2 (diff)
downloadaports-4b09bbb9e2e79afdb8264c4d56361ca5b8756f30.tar.bz2
aports-4b09bbb9e2e79afdb8264c4d56361ca5b8756f30.tar.xz
main/make: upgrade to 4.0
Diffstat (limited to 'main/make/use-malloc.patch')
-rw-r--r--main/make/use-malloc.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/main/make/use-malloc.patch b/main/make/use-malloc.patch
deleted file mode 100644
index dfda84c606..0000000000
--- a/main/make/use-malloc.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- ./job.c.orig
-+++ ./job.c
-@@ -2880,7 +2880,7 @@
- #define EVAL_LEN 0
- #endif
-
-- new_line = alloca (shell_len + 1 + sflags_len + 1
-+ new_line = xmalloc (shell_len + 1 + sflags_len + 1
- + (line_len*2) + 1 + EVAL_LEN);
- ap = new_line;
- memcpy (ap, shell, shell_len);
-@@ -2970,9 +2970,11 @@
- }
- #endif
- }
-- if (ap == new_line + shell_len + sflags_len + 2)
-+ if (ap == new_line + shell_len + sflags_len + 2) {
- /* Line was empty. */
-+ free (new_line);
- return 0;
-+ }
- *ap = '\0';
-
- #ifdef WINDOWS32
-@@ -3112,6 +3114,7 @@
- fatal (NILF, _("%s (line %d) Bad shell context (!unixy && !batch_mode_shell)\n"),
- __FILE__, __LINE__);
- #endif
-+ free (new_line);
- }
- #endif /* ! AMIGA */
-