=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- mandoc/man_term.c 2009/06/11 07:26:35 1.10 +++ mandoc/man_term.c 2009/06/11 12:07:49 1.11 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.10 2009/06/11 07:26:35 kristaps Exp $ */ +/* $Id: man_term.c,v 1.11 2009/06/11 12:07:49 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -292,7 +292,9 @@ pre_IP(DECL_ARGS) offs = strlen(nn->string); p->flags |= TERMP_NOSPACE; - p->offset += offs; + /* FIXME */ + if ((p->offset += offs) > p->rmargin) + errx(1, "line too long"); return(0); }