=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/lexi.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/indent/lexi.c 2013/11/26 13:21:17 1.16 --- src/usr.bin/indent/lexi.c 2014/10/11 03:05:48 1.17 *************** *** 1,4 **** ! /* $OpenBSD: lexi.c,v 1.16 2013/11/26 13:21:17 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 --- 1,4 ---- ! /* $OpenBSD: lexi.c,v 1.17 2014/10/11 03:05:48 doug Exp $ */ /* * Copyright (c) 1980, 1993 *************** *** 584,590 **** int newspecials = maxspecials + (maxspecials >> 2); struct templ *specials2; ! specials2 = realloc(specials, newspecials * sizeof specials[0]); if (specials2 == NULL) err(1, NULL); specials = specials2; --- 584,590 ---- int newspecials = maxspecials + (maxspecials >> 2); struct templ *specials2; ! specials2 = reallocarray(specials, newspecials, sizeof(specials[0])); if (specials2 == NULL) err(1, NULL); specials = specials2;