=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- src/usr.bin/mandoc/term.c 2014/04/20 16:44:44 1.83 +++ src/usr.bin/mandoc/term.c 2014/04/23 21:06:33 1.84 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.83 2014/04/20 16:44:44 schwarze Exp $ */ +/* $Id: term.c,v 1.84 2014/04/23 21:06:33 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -518,7 +518,7 @@ while (sz >= p->maxcols) p->maxcols <<= 2; - p->buf = mandoc_realloc(p->buf, sizeof(int) * p->maxcols); + p->buf = mandoc_reallocarray(p->buf, p->maxcols, sizeof(int)); } static void