]> git.pld-linux.org Git - packages/bcc.git/blob - dev86-0.16.17-fortify.patch
- noted new URL
[packages/bcc.git] / dev86-0.16.17-fortify.patch
1 --- dev86-0.16.19/bcc/bcc.c.orig        2012-08-13 20:58:29.000000000 +0200
2 +++ dev86-0.16.19/bcc/bcc.c     2012-10-25 21:33:14.224427660 +0200
3 @@ -20,6 +20,7 @@
4  #include <limits.h>
5  #include <stdlib.h>
6  #ifndef MSDOS
7 +#include <limits.h>
8  #include <unistd.h>
9  #endif
10  #else
11 @@ -600,12 +601,17 @@
12     }
13  }
14  
15 -void
16 -command_reset()
17 -{
18  #ifndef MAXPATHLEN
19 +#ifdef PATH_MAX
20 +#define MAXPATHLEN PATH_MAX
21 +#else
22  #define MAXPATHLEN 1024
23  #endif
24 +#endif
25 +
26 +void
27 +command_reset()
28 +{
29     char buf[MAXPATHLEN];
30     char ** prefix;
31     char * saved_cmd;
32 @@ -1312,17 +1318,7 @@
33  
34        for(d=s=ptr; d && *s; s=d)
35        {
36 -#ifndef __BCC__
37 -#ifdef PATH_MAX
38 -         char buf[PATH_MAX];
39 -#else
40 -#ifdef MAXPATHLEN
41           char buf[MAXPATHLEN];
42 -#else
43 -         char buf[1024];
44 -#endif
45 -#endif
46 -#endif
47  
48          free(temp);
49           d=strchr(s, ':');
This page took 0.062565 seconds and 3 git commands to generate.