summaryrefslogtreecommitdiffstats
path: root/testing/dev86/dev86-overflow.patch
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2011-12-17 18:31:22 +0000
committerAndrew Manison <amanison@anselsystems.com>2011-12-17 18:31:22 +0000
commita9fef479eb56b8bc7f984e3998c6bdc55ed340ed (patch)
tree90b9ed0ddcde1c2a2fd6cfca212c376170b375f9 /testing/dev86/dev86-overflow.patch
parent2c4bbae51bb79c8492e2701a2085bf060abc5248 (diff)
parent703b9580ec2d7a0f919b63cd409a526933a8eaab (diff)
downloadaports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.bz2
aports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.xz
Merge remote-tracking branch 'alpine/master'
Diffstat (limited to 'testing/dev86/dev86-overflow.patch')
-rw-r--r--testing/dev86/dev86-overflow.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/dev86/dev86-overflow.patch b/testing/dev86/dev86-overflow.patch
new file mode 100644
index 000000000..7b2e5666f
--- /dev/null
+++ b/testing/dev86/dev86-overflow.patch
@@ -0,0 +1,24 @@
+diff -up dev86-0.16.17/bcc/bcc.c.overflow dev86-0.16.17/bcc/bcc.c
+--- dev86-0.16.17/bcc/bcc.c.overflow 2005-01-03 23:41:55.000000000 +0100
++++ dev86-0.16.17/bcc/bcc.c 2009-02-19 10:49:32.000000000 +0100
+@@ -16,6 +16,7 @@
+ * -M0 A framework for the -B option.
+ */
+ #include <stdio.h>
++#include <limits.h>
+ #ifdef __STDC__
+ #include <stdlib.h>
+ #ifndef MSDOS
+@@ -1308,11 +1309,7 @@ void reset_prefix_path()
+
+ for(d=s=ptr; d && *s; s=d)
+ {
+-#ifdef MAXPATHLEN
+- char buf[MAXPATHLEN];
+-#else
+- char buf[1024];
+-#endif
++ char buf[PATH_MAX];
+
+ free(temp);
+ d=strchr(s, ':');