Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.132
 
1.133
 
MAIN:ragge:20081204212857
 
cc.c
_>614614         if (signal(SIGTERM, SIG_IGN) != SIG_IGN)        /* terminate */
 615615                 signal(SIGTERM, idexit);
 616616 #ifdef MULTITARGET
<>617 -        asprintf(&pass0, "%s%s%s", LIBEXECDIR, "ccom_", mach);
  617+        pass0 = copy(LIBEXECDIR "/ccom_", k = strlen(mach));
  618+        strlcat(pass0, mach, sizeof(LIBEXECDIR "/ccom_") + k);
618619 #endif
 619620         pvt = pv;
 620621         for (i=0; i<nc; i++) {
     
 !
741742                 if (Oflag) {
 742743                         av[na++] = "-xtemps";
 743744                         av[na++] = "-xdeljumps";
<> 745+                        av[na++] = "-xinline";
744746                 }
 745747                 for (j = 0; j < xnum; j++)
 746748                         av[na++] = xlist[j];
     
 !
862864                 }
 863865                 if (outfile) {
 864866 #ifdef MSLINKER
<>865 -                        char *s = copy("/OUT:", strlen(outfile));
 866 -                        strcat(s, outfile);
  867+#define OUT     "/OUT:"
  868+                        char *s = copy(OUT, i = strlen(outfile));
  869+                        strlcat(s, outfile, sizeof(OUT) + i);
867870                         av[j++] = s;
 868871 #else
 869872                         av[j++] = "-o";
     
 !
923926                         av[j++] = "-lpthread";
 924927                 if (!nostdlib) {
 925928 #ifdef MSLINKER
<>926 -                        char *s = copy("/LIBPATH:", strlen(pcclibdir));
  929+#define DL      "/LIBPATH:"
927930 #else
<>928 -                        char *s = copy("-L", strlen(pcclibdir));
  931+#define DL      "-L"
929932 #endif
<>930 -                        strcat(s, pcclibdir);
  933+                        char *s = copy(DL, i = strlen(pcclibdir));
  934+                        strlcat(s, pcclibdir, sizeof(DL) +i );
931935                         av[j++] = s;
 932936                         if (pgflag) {
 933937                                 for (i = 0; libclibs_profile[i]; i++)
     
 !
10421046 {
 10431047         char *suffix;
 10441048         char *str;
<> 1049+        int i;
10451050 
 10461051         if (Bflag == NULL || s[0] != '/')
 10471052                 return s;
     
 !
10501055         if (suffix == NULL)
 10511056                 suffix = s;
 10521057 
<>1053 -        str = copy(Bflag, strlen(suffix));
 1054 -        strcat(str, suffix);
  1058+        str = copy(Bflag, i = strlen(suffix));
  1059+        strlcat(str, suffix, strlen(Bflag) + i + 1);
<_10551060         return str;
 10561061 }
 10571062 
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-16 11:28 +0200