=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_term.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/mandoc/man_term.c 2009/06/17 22:27:34 1.3 +++ src/usr.bin/mandoc/man_term.c 2009/06/18 21:16:11 1.4 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.3 2009/06/17 22:27:34 schwarze Exp $ */ +/* $Id: man_term.c,v 1.4 2009/06/18 21:16:11 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -289,9 +289,12 @@ } else offs = strlen(nn->string); - p->offset += offs; -#endif p->flags |= TERMP_NOSPACE; + /* FIXME */ + if ((p->offset += offs) > p->rmargin) + errx(1, "line too long"); +#endif + return(0); }