summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 16:47:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 16:47:13 +0000
commitb4fc0a872c9cf484b77664293dcc7afdfdbd2f83 (patch)
tree3b8f8d0c8fcb0f13997bf208833210fd31925ee9
parentb3a09b4f2e6de787535cd7659fd19f1c7f91eada (diff)
downloadmandoc-b4fc0a872c9cf484b77664293dcc7afdfdbd2f83.tar.gz
mandoc-b4fc0a872c9cf484b77664293dcc7afdfdbd2f83.tar.zst
mandoc-b4fc0a872c9cf484b77664293dcc7afdfdbd2f83.zip
*** empty log message ***
-rw-r--r--terminal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 484bb32f..e8bfaa18 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1,4 +1,4 @@
-/* $Id: terminal.c,v 1.11 2009/03/26 16:44:22 kristaps Exp $ */
+/* $Id: terminal.c,v 1.12 2009/03/26 16:47:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -456,7 +456,8 @@ term_pescape(struct termp *p, const char *word, int *i, int len)
}
} else if ('f' == word[*i]) {
- if (++(*i) >= len)
+ (*i)++;
+ if (*i >= len)
return;
switch (word[*i]) {
case ('B'):