=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/paragraph.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/mg/paragraph.c 2008/09/15 16:13:35 1.17 +++ src/usr.bin/mg/paragraph.c 2009/06/02 21:55:25 1.18 @@ -1,4 +1,4 @@ -/* $OpenBSD: paragraph.c,v 1.17 2008/09/15 16:13:35 kjell Exp $ */ +/* $OpenBSD: paragraph.c,v 1.18 2009/06/02 21:55:25 kjell Exp $ */ /* This file is in the public domain. */ @@ -336,6 +336,7 @@ { char buf[32], *rep; const char *es; + int nfill; if ((f & FFARG) != 0) { fillcol = n; @@ -345,9 +346,12 @@ return (ABORT); else if (rep[0] == '\0') return (FALSE); - fillcol = strtonum(rep, 0, INT_MAX, &es); - if (es != NULL) + nfill = strtonum(rep, 0, INT_MAX, &es); + if (es != NULL) { + ewprintf("Invalid fill column: %s", rep); return (FALSE); + } + fillcol = nfill; ewprintf("Fill column set to %d", fillcol); } return (TRUE);