Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.17
 
1.18
 
MAIN:sgk:20081224193606
 
f77.c
_>117117 void crfnames(void);
 118118 static void fatal1(char *, ...);
 119119 void done(int), texec(char *, char **);
<>120 -char *copys(char *), *copyn(int, char *);
  120+static char *copyn(int, char *);
121121 int dotchar(char *), unreadable(char *), sys(char *), dofort(char *);
 122122 int nodup(char *), dopass2(void);
 123123 int await(int);
     
 !
267267                                 goto endfor;
 268268                         default:
 269269                                 lflag[1] = *s;
<>270 -                                *loadp++ = copys(lflag);
  270+                                *loadp++ = copyn(strlen(lflag), lflag);
271271                                 break;
 272272                         }
 273273 endfor:
     
 !
771771 }
 772772 
 773773 
<>774 -char *
 775 -copyn(n, s)
 776 -register int n;
 777 -register char *s;
  774+static char *
  775+copyn(int n, char *s)
778776 {
<>779 -register char *p, *q;
  777+        char *p, *q;
780778 
<>781 -p = q = (char *) ckalloc(n);
 782 -while(n-- > 0)
 783 -        *q++ = *s++;
 784 -return(p);
  779+        p = q = (char *)ckalloc(n + 1);
  780+        while(n-- > 0)
  781+                *q++ = *s++;
  782+        return (p);
785783 }
 786784 
 787785 
<>788 -char *
 789 -copys(s)
 790 -char *s;
 791 -{
 792 -return( copyn( strlen(s)+1 , s) );
 793 -}
 794 -
 795 -
<_796786 int
 797787 nodup(s)
 798788 char *s;
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 23:39 +0200