summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index a908b4ca..deb85f24 100644
--- a/roff.c
+++ b/roff.c
@@ -1383,10 +1383,11 @@ roff_tr(ROFF_ARGS)
return(ROFF_IGN);
}
ssz = (size_t)(p - second);
- } else if ('\0' == *p) {
+ } else if ('\0' == *second) {
mandoc_msg(MANDOCERR_ARGCOUNT, r->parse,
ln, (int)(p - *bufp), NULL);
second = " ";
+ p--;
}
roff_setstrn(&r->chrtab, first, fsz, second, ssz, 0);