=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/display.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- src/usr.bin/mg/display.c 2015/02/17 00:32:40 1.43 +++ src/usr.bin/mg/display.c 2015/02/17 00:34:33 1.44 @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.43 2015/02/17 00:32:40 tedu Exp $ */ +/* $OpenBSD: display.c,v 1.44 2015/02/17 00:34:33 tedu Exp $ */ /* This file is in the public domain. */ @@ -206,10 +206,10 @@ } } - TRYREALLOCARRAY(score, newrow * newrow, sizeof(struct score)); + TRYREALLOCARRAY(score, newrow, newrow * sizeof(struct score)); TRYREALLOCARRAY(vscreen, (newrow - 1), sizeof(struct video *)); TRYREALLOCARRAY(pscreen, (newrow - 1), sizeof(struct video *)); - TRYREALLOCARRAY(video, (2 * (newrow - 1)), sizeof(struct video)); + TRYREALLOCARRAY(video, (newrow - 1), 2 * sizeof(struct video)); /* * Zero-out the entries we just allocated.