Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37788536
en ru br
ALT Linux repos
S:0.16.19-alt2
5.0: 0.16.17-alt5
4.1: 0.16.17-alt5
4.0: 0.16.17-alt5
3.0: 0.16.17-alt2

Group :: Development/Other
RPM: dev86

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: dev86-0.16.19-alt-bcc.patch
Download


--- dev86/bcc/bcc.c
+++ dev86/bcc/bcc.c
@@ -603,10 +603,7 @@ validate_link_opts()
 void
 command_reset()
 {
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
-#endif
-   char buf[MAXPATHLEN];
+   char buf[PATH_MAX];
    char ** prefix;
    char * saved_cmd;
 
@@ -1326,7 +1323,7 @@ void reset_prefix_path()
 
 	 free(temp);
          d=strchr(s, ':');
-	 if( d ) *d='\0';
+	 if( d ) *(d++)='\0';
 	 temp = xalloc(strlen(progname)+strlen(s)+2);
 	 strcpy(temp, s);
 	 strcat(temp, "/");
@@ -1339,7 +1336,6 @@ void reset_prefix_path()
          }
 #endif
 	 if( access(temp, X_OK) == 0 ) break;
-	 d++;
       }
       if( s == 0 )
       {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin