summaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index ef1d6636..786f1b4b 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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 <kristaps@kth.se>
*
@@ -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);
}