[BACK]Return to run.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/run.c between version 1.37 and 1.38

version 1.37, 2014/12/08 21:50:09 version 1.38, 2014/12/19 19:28:55
Line 270 
Line 270 
         fp++;   /* now ok to up frame */          fp++;   /* now ok to up frame */
         if (fp >= frame + nframe) {          if (fp >= frame + nframe) {
                 int dfp = fp - frame;   /* old index */                  int dfp = fp - frame;   /* old index */
                 frame = (struct Frame *)                  frame = reallocarray(frame, (nframe += 100),
                         realloc((char *) frame, (nframe += 100) * sizeof(struct Frame));                      sizeof(struct Frame));
                 if (frame == NULL)                  if (frame == NULL)
                         FATAL("out of space for stack frames in %s", s);                          FATAL("out of space for stack frames in %s", s);
                 fp = frame + dfp;                  fp = frame + dfp;

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38