Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.139
 
1.140
 
MAIN:gmcgarry:20090108234512
 
cc.c
_>707707                 if (Eflag && outfile)
 708708                          ermfile = av[na++] = outfile;
 709709                 av[na++]=0;
<>710 -                if (callsys(passp, av))
 711 -                        {exfail++; eflag++;}
  710+                if (callsys(passp, av)) {
  711+                        exfail++;
  712+                        eflag++;
  713+                }
712714                 if (Eflag || Mflag)
 713715                         continue;
 714716                 if (onlyas) {
     
 !
11261128 }
 11271129 
 11281130 #ifdef WIN32
<> 1131+#define MAX_CMDLINE_LENGTH 32768
11291132 int
 11301133 callsys(char *f, char *v[])
 11311134 {
 11321135         int t;
<>1133 -        char cmd[MAX_PATH];
  1136+        char cmd[MAX_CMDLINE_LENGTH];
11341137         int len;
 11351138         STARTUPINFO si;
 11361139         PROCESS_INFORMATION pi;
 11371140         DWORD exitCode;
 11381141         BOOL ok;
 11391142 
<>1140 -        len = strlcpy(cmd, f, MAX_PATH);
 1141 -        for (t = 1; v[t] && len < MAX_PATH; t++) {
 1142 -                len = strlcat(cmd, " ", MAX_PATH);
 1143 -                len = strlcat(cmd, v[t], MAX_PATH);
  1143+        len = strlcpy(cmd, f, MAX_CMDLINE_LENGTH);
  1144+        for (t = 1; v[t] && len < MAX_CMDLINE_LENGTH; t++) {
  1145+                len = strlcat(cmd, " ", MAX_CMDLINE_LENGTH);
  1146+                len = strlcat(cmd, v[t], MAX_CMDLINE_LENGTH);
<_11441147         }
 11451148 
 11461149         if (vflag)
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-08-22 03:58 +0200