Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.27
 
1.28
 
MAIN:pj:20041219211513
 
cc.c
_>8282 char    *tmp3;
 8383 char    *tmp4;
 8484 char    *outfile;
<>85 -char *copy(char []),*setsuf(char [], int);
  85+char *copy(char *as),*setsuf(char [], int);
8686 int getsuf(char []);
 8787 int main(int, char *[]);
 8888 void error(char *, char *);
     
 !
570570 }
 571571 
 572572 char *
<>573 -copy(as)
 574 -char as[];
  573+copy(char *as)
575574 {
<>576 -        register char *otsp, *s;
  575+        char *p;
577576 
<>578 -        otsp = tsp;
 579 -        s = as;
 580 -        while((*tsp++ = *s++));
 581 -        if (tsp >tsa+CHSPACE)
 582 -                {
 583 -                tsp = tsa = calloc(CHSPACE+50,1);
 584 -                if (tsa== 0){
 585 -                        error("no space for file names", 0);
 586 -                        eflag = 8;
 587 -                        dexit();
 588 -                        }
 589 -                }
 590 -        return(otsp);
  577+        if ((p = strdup(as)) == NULL) {
  578+                error("no space for file names", 0);
  579+                eflag = 8;
  580+                dexit();
  581+        }
  582+
  583+        return p;
<_591584 }
 592585 
 593586 int
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-10-31 08:42 +0100