Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.52
 
1.53
 
MAIN:ragge:20070915073738
 
cc.c
_>616616 
 617617         if ((t=fork())==0) {
 618618                 if (Bflag) {
<>619 -                        char *a = malloc(strlen(Bflag) + 8);
  619+                        int len = strlen(Bflag) + 8;
  620+                        char *a = malloc(len);
620621                         if ((s = strrchr(f, '/'))) {
<>621 -                                strcpy(a, Bflag);
 622 -                                strcat(a, s);
  622+                                strlcpy(a, Bflag, len);
  623+                                strlcat(a, s, len);
<_623624                                 execv(a, v);
 624625                         }
 625626                 }
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-28 11:08 +0200