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

Diff for /src/usr.bin/indent/lexi.c between version 1.16 and 1.17

version 1.16, 2013/11/26 13:21:17 version 1.17, 2014/10/11 03:05:48
Line 584 
Line 584 
         int newspecials = maxspecials + (maxspecials >> 2);          int newspecials = maxspecials + (maxspecials >> 2);
         struct templ *specials2;          struct templ *specials2;
   
         specials2 = realloc(specials, newspecials * sizeof specials[0]);          specials2 = reallocarray(specials, newspecials, sizeof(specials[0]));
         if (specials2 == NULL)          if (specials2 == NULL)
             err(1, NULL);              err(1, NULL);
         specials = specials2;          specials = specials2;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17