diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 19:03:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 19:03:48 +0000 |
commit | bc0592bb8d2a9b0e708a27e51d1c2459f799a768 (patch) | |
tree | d2d8c2b2030316ac2efd206d753ea0dccfa9abd6 /main/dev86/dev86-overflow.patch | |
parent | d3f3bd4f6ea37496671436ba4510c701a5c5989f (diff) | |
download | aports-bc0592bb8d2a9b0e708a27e51d1c2459f799a768.tar.bz2 aports-bc0592bb8d2a9b0e708a27e51d1c2459f799a768.tar.xz |
main/dev86: moved from testing
Diffstat (limited to 'main/dev86/dev86-overflow.patch')
-rw-r--r-- | main/dev86/dev86-overflow.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/main/dev86/dev86-overflow.patch b/main/dev86/dev86-overflow.patch new file mode 100644 index 000000000..7b2e5666f --- /dev/null +++ b/main/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, ':'); |