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

Diff for /src/usr.bin/awk/tran.c between version 1.27 and 1.28

version 1.27, 2020/06/10 21:05:50 version 1.28, 2020/06/16 16:14:22
Line 524 
Line 524 
   
         p = malloc(n);          p = malloc(n);
         if (p == NULL)          if (p == NULL)
                 FATAL("out of space in tostring on %s", s);                  FATAL("out of space in tostringN %zu", n);
         strlcpy(p, s, n);          if (strlcpy(p, s, n) >= n)
                   FATAL("out of space in tostringN on %s", s);
         return(p);          return(p);
 }  }
   

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28