=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/echo.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -r1.56 -r1.57 --- src/usr.bin/mg/echo.c 2014/03/20 07:47:29 1.56 +++ src/usr.bin/mg/echo.c 2014/11/16 04:16:41 1.57 @@ -1,4 +1,4 @@ -/* $OpenBSD: echo.c,v 1.56 2014/03/20 07:47:29 lum Exp $ */ +/* $OpenBSD: echo.c,v 1.57 2014/11/16 04:16:41 guenther Exp $ */ /* This file is in the public domain. */ @@ -711,7 +711,7 @@ * Now do the display. Objects are written into linebuf until * it fills, and then put into the help buffer. */ - linesize = MAX(ncol, maxwidth) + 1; + linesize = (ncol > maxwidth ? ncol : maxwidth) + 1; if ((linebuf = malloc(linesize)) == NULL) { free_file_list(wholelist); return (FALSE);